25#ifndef vtkGDALRasterReader_h 
   26#define vtkGDALRasterReader_h 
   28#include <vtkIOGDALModule.h>  
   35VTK_ABI_NAMESPACE_BEGIN
 
   72  vtkSetMacro(CollateBands, 
bool);
 
   73  vtkGetMacro(CollateBands, 
bool);
 
   74  vtkBooleanMacro(CollateBands, 
bool);
 
   80  vtkSetVector2Macro(TargetDimensions, 
int);
 
   81  vtkGetVector2Macro(TargetDimensions, 
int);
 
  144  int TargetDimensions[2];
 
  154  class vtkGDALRasterReaderInternal;
 
  155  vtkGDALRasterReaderInternal* 
Impl;
 
Read raster file formats using GDAL.
 
void DisableAllCellArrays()
The following methods allow selective reading of bands.
 
void EnableAllCellArrays()
The following methods allow selective reading of bands.
 
~vtkGDALRasterReader() override
 
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
 
vtkGDALRasterReaderInternal * Impl
 
std::string DomainMetaData
 
void SetCellArrayStatus(const char *name, int status)
The following methods allow selective reading of bands.
 
std::vector< std::string > GetDomainMetaData(const std::string &domain)
Return domain metadata.
 
int GetNumberOfCellArrays()
The following methods allow selective reading of bands.
 
const char * GetCellArrayName(int index)
The following methods allow selective reading of bands.
 
const std::vector< std::string > & GetMetaData()
Return metadata as reported by GDAL.
 
const char * GetProjectionString() const
Return proj4 spatial reference.
 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
 
static vtkGDALRasterReader * New()
 
std::string ProjectionWKT
 
int CanReadFile(VTK_FILEPATH const char *fname) override
Is this file supported.
 
std::vector< std::string > Domains
 
std::vector< std::string > MetaData
 
std::string DriverLongName
 
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
 
std::string DriverShortName
 
vtkIdType GetNumberOfCells()
Return the number of cells that are not set to GDAL NODATA.
 
const std::string & GetDriverLongName()
Return driver name which was used to read the current data.
 
const char * GetProjectionWKT() const
Returns WKT spatial reference.
 
int * GetRasterDimensions()
Get raster width and height in number of pixels (cells)
 
double GetInvalidValue(size_t bandIndex=0, int *hasNoData=nullptr)
Return the invalid value for a pixel (for blanking purposes) in a specified raster band.
 
int GetCellArrayStatus(const char *name)
The following methods allow selective reading of bands.
 
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
 
const double * GetGeoCornerPoints()
Return geo-referenced corner points (Upper left, lower left, lower right, upper right)
 
const std::string & GetDriverShortName()
Return driver name which was used to read the current data.
 
Superclass of binary file readers.
 
a simple class to control print indentation