![]() |
pktools
2.6.5
Processing Kernel for geospatial data
|
Public Member Functions | |
ImgReaderGdal (const std::string &filename) | |
void | open (const std::string &filename) |
void | close (void) |
std::string | getFileName () const |
int | nrOfCol (void) const |
int | nrOfRow (void) const |
int | nrOfBand (void) const |
bool | isGeoRef () const |
std::string | getProjection (void) const |
std::string | getProjectionRef (void) const |
std::string | getGeoTransform () const |
void | getGeoTransform (double *gt) const |
std::string | getDescription () const |
std::string | getMetadataItem () const |
std::string | getImageDescription () const |
bool | getBoundingBox (double &ulx, double &uly, double &lrx, double &lry) const |
bool | getCenterPos (double &x, double &y) const |
double | getUlx () const |
double | getUly () const |
double | getLrx () const |
double | getLry () const |
void | setScale (double theScale, int band=0) |
void | setOffset (double theOffset, int band=0) |
int | getNoDataValues (std::vector< double > &noDataValues) const |
bool | isNoData (double value) const |
int | pushNoDataValue (double noDataValue) |
int | setNoData (const std::vector< double > nodata) |
CPLErr | GDALSetNoDataValue (double noDataValue, int band=0) |
bool | covers (double x, double y) const |
bool | covers (double ulx, double uly, double lrx, double lry) const |
bool | geo2image (double x, double y, double &i, double &j) const |
bool | image2geo (double i, double j, double &x, double &y) const |
double | getDeltaX (void) const |
double | getDeltaY (void) const |
template<typename T > | |
void | readData (T &value, const GDALDataType &dataType, int col, int row, int band=0) const |
template<typename T > | |
void | readData (std::vector< T > &buffer, const GDALDataType &dataType, int minCol, int maxCol, int row, int band=0) const |
template<typename T > | |
void | readData (std::vector< T > &buffer, const GDALDataType &dataType, int minCol, int maxCol, double row, int band=0, RESAMPLE resample=NEAR) const |
template<typename T > | |
void | readDataBlock (Vector2d< T > &buffer, const GDALDataType &dataType, int minCol, int maxCol, int minRow, int maxRow, int band=0) const |
template<typename T > | |
void | readDataBlock (std::vector< T > &buffer, const GDALDataType &dataType, int minCol, int maxCol, int minRow, int maxRow, int band=0) const |
template<typename T > | |
void | readData (std::vector< T > &buffer, const GDALDataType &dataType, int row, int band=0) const |
template<typename T > | |
void | readData (std::vector< T > &buffer, const GDALDataType &dataType, double row, int band=0, RESAMPLE resample=NEAR) const |
void | getMinMax (int startCol, int endCol, int startRow, int endRow, int band, double &minValue, double &maxValue) const |
void | getMinMax (double &minValue, double &maxValue, int band=0, bool exhaustiveSearch=true) const |
double | getMin (int &col, int &row, int band=0) const |
double | getHistogram (std::vector< double > &histvector, double &min, double &max, unsigned int &nbin, int theBand=0, bool kde=false) |
double | getMax (int &col, int &row, int band=0) const |
void | getRefPix (double &refX, double &refY, int band=0) const |
void | getRange (std::vector< short > &range, int Band=0) const |
unsigned long int | getNvalid (int band) const |
GDALDataType | getDataType (int band=0) const |
GDALRasterBand * | getRasterBand (int band=0) |
GDALColorTable * | getColorTable (int band=0) const |
std::string | getDriverDescription () const |
std::string | getImageType () const |
std::string | getInterleave () const |
std::string | getCompression () const |
GDALDataset * | getDataset () |
char ** | getMetadata () |
char ** | getMetadata () const |
void | getMetadata (std::list< std::string > &metadata) const |
Protected Member Functions | |
void | setCodec () |
Definition at line 33 of file ImgReaderGdal.h.