27 #ifndef vtkGDALRasterReader_h
28 #define vtkGDALRasterReader_h
30 #include <vtkIOGDALModule.h>
37 VTK_ABI_NAMESPACE_BEGIN
48 using Superclass::CanReadFile;
57 const char* GetProjectionString()
const;
68 const double* GetGeoCornerPoints();
75 vtkSetMacro(CollateBands,
bool);
76 vtkGetMacro(CollateBands,
bool);
77 vtkBooleanMacro(CollateBands,
bool);
83 vtkSetVector2Macro(TargetDimensions,
int);
84 vtkGetVector2Macro(TargetDimensions,
int);
91 int* GetRasterDimensions();
97 const std::vector<std::string>& GetMetaData();
105 double GetInvalidValue(
size_t bandIndex = 0,
int* hasNoData =
nullptr);
110 std::vector<std::string> GetDomainMetaData(
const std::string& domain);
130 int GetNumberOfCellArrays();
131 const char* GetCellArrayName(
int index);
132 int GetCellArrayStatus(
const char*
name);
133 void SetCellArrayStatus(
const char*
name,
int status);
134 void DisableAllCellArrays();
135 void EnableAllCellArrays();
147 int TargetDimensions[2];
157 class vtkGDALRasterReaderInternal;
158 vtkGDALRasterReaderInternal*
Impl;
165 VTK_ABI_NAMESPACE_END
166 #endif // vtkGDALRasterReader_h
std::string DriverShortName
static vtkImageReader2 * New()
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...
virtual int CanReadFile(const char *fname)
Return non zero if the reader can read the given file name.
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.