21#ifndef vtkGDALVectorReader_h
22#define vtkGDALVectorReader_h
24#include "vtkIOGDALModule.h"
30VTK_ABI_NAMESPACE_BEGIN
72 vtkSetMacro(ActiveLayer,
int);
73 vtkGetMacro(ActiveLayer,
int);
83 vtkSetMacro(AppendFeatures,
int);
84 vtkGetMacro(AppendFeatures,
int);
85 vtkBooleanMacro(AppendFeatures,
int);
117 vtkSetMacro(AddFeatureIds,
int);
118 vtkGetMacro(AddFeatureIds,
int);
119 vtkBooleanMacro(AddFeatureIds,
int);
Read vector file formats using GDAL.
vtkGetFilePathMacro(FileName)
std::map< int, std::string > GetLayersProjection()
Return projection string belonging to each layer in WKT format.
static int OGRRegistered
Global variable indicating whether the OGR library has been registered yet or not.
const char * GetLayerProjectionAsProj4(int layerIndex)
Return projection string belonging to a layer in PROJ.4 format.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetActiveLayerType()
Return the active layer type (eg point, line, polygon).
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
char * FileName
The name of the file that will be opened on the next call to RequestData()
std::map< int, std::string > LayersProjection
Mapping of layer to projection.
const char * GetLayerProjection(int layerIndex)
Return projection string belonging to a layer in WKT format.
int GetFeatureCount(int layerIndex=0)
Given a layer index return number of features (shapes).
vtkGDALVectorReader::Internal * Implementation
Private per-file metadata.
int GetLayerType(int layerIndex=0)
Given a index return layer type (eg point, line, polygon).
static vtkGDALVectorReader * New()
vtkSetFilePathMacro(FileName)
int GetActiveLayerFeatureCount()
Return the number of features in the active layer (shapes).
~vtkGDALVectorReader() override
int GetNumberOfLayers()
Return number of layers.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.