 |
VTK
9.0.1
|
Go to the documentation of this file.
30 #ifndef vtkGDALVectorReader_h
31 #define vtkGDALVectorReader_h
33 #include "vtkIOGDALModule.h"
46 vtkSetStringMacro(FileName);
47 vtkGetStringMacro(FileName);
80 vtkSetMacro(ActiveLayer,
int);
81 vtkGetMacro(ActiveLayer,
int);
91 vtkSetMacro(AppendFeatures,
int);
92 vtkGetMacro(AppendFeatures,
int);
93 vtkBooleanMacro(AppendFeatures,
int);
125 vtkSetMacro(AddFeatureIds,
int);
126 vtkGetMacro(AddFeatureIds,
int);
127 vtkBooleanMacro(AddFeatureIds,
int);
162 #endif // vtkGDALVectorReader_h
int GetActiveLayerFeatureCount()
Return the number of features in the active layer (shapes).
int GetActiveLayerType()
Return the active layer type (eg point, line, polygon).
int GetLayerType(int layerIndex=0)
Given a index return layer type (eg point, line, polygon).
int GetFeatureCount(int layerIndex=0)
Given a layer index return number of features (shapes).
const char * GetLayerProjection(int layerIndex)
Return projection string belonging to a layer in WKT format.
static int OGRRegistered
Global variable indicating whether the OGR library has been registered yet or not.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int GetNumberOfLayers()
Return number of layers.
vtkGDALVectorReader::Internal * Implementation
Private per-file metadata.
char * FileName
The name of the file that will be opened on the next call to RequestData()
~vtkGDALVectorReader() override
a simple class to control print indentation
std::map< int, std::string > GetLayersProjection()
Return projection string belonging to each layer in WKT format.
std::map< int, std::string > LayersProjection
Mapping of layer to projection.
static vtkGDALVectorReader * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Read vector file formats using GDAL.
const char * GetLayerProjectionAsProj4(int layerIndex)
Return projection string belonging to a layer in PROJ.4 format.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.