37 #ifndef vtkGDALRasterReader_h
38 #define vtkGDALRasterReader_h
40 #include <vtkIOGDALModule.h>
65 const char* GetProjectionString()
const;
76 const double* GetGeoCornerPoints();
83 vtkSetMacro(CollateBands,
bool);
84 vtkGetMacro(CollateBands,
bool);
85 vtkBooleanMacro(CollateBands,
bool);
91 vtkSetVector2Macro(TargetDimensions,
int);
92 vtkGetVector2Macro(TargetDimensions,
int);
99 int* GetRasterDimensions();
105 const std::vector<std::string>& GetMetaData();
113 double GetInvalidValue(
size_t bandIndex = 0,
int* hasNoData =
nullptr);
118 std::vector<std::string> GetDomainMetaData(
const std::string& domain);
138 int GetNumberOfCellArrays();
139 const char* GetCellArrayName(
int index);
140 int GetCellArrayStatus(
const char*
name);
141 void SetCellArrayStatus(
const char*
name,
int status);
142 void DisableAllCellArrays();
143 void EnableAllCellArrays();
156 int TargetDimensions[2];
166 class vtkGDALRasterReaderInternal;
167 vtkGDALRasterReaderInternal*
Impl;
174 #endif // vtkGDALRasterReader_h
std::string DriverShortName
static vtkImageReader2 * New()
virtual int CanReadFile(VTK_FILEPATH const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.
std::string DomainMetaData
std::vector< std::string > Domains
a simple class to control print indentation
std::string DriverLongName
vtkGDALRasterReaderInternal * Impl
const char * GetProjectionWKT() const
Returns WKT spatial reference.
Superclass of binary file readers.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
int FillOutputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
std::vector< std::string > MetaData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
std::string ProjectionWKT
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Read raster file formats using GDAL.