pktools  2.6.6
Processing Kernel for geospatial data
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ImgUpdaterGdal Class Reference
Inheritance diagram for ImgUpdaterGdal:
Inheritance graph
[legend]
Collaboration diagram for ImgUpdaterGdal:
Collaboration graph
[legend]

Public Member Functions

 ImgUpdaterGdal (const std::string &filename)
 
void open (const std::string &filename)
 
void close (void)
 
 ImgUpdaterGdal (const std::string &filename, const GDALAccess &readMode=GA_Update)
 
void open (const std::string &filename, const GDALAccess &readMode=GA_Update)
 
void close (void)
 
- Public Member Functions inherited from ImgReaderGdal
 ImgReaderGdal (const std::string &filename, const GDALAccess &readMode=GA_ReadOnly)
 
void open (const std::string &filename, const GDALAccess &readMode=GA_ReadOnly)
 
void setScale (double theScale, int band=0)
 
void setOffset (double theOffset, int band=0)
 
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) 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
 
- Public Member Functions inherited from ImgRasterGdal
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
 
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
 
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
 
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
 
std::string getDescription () const
 
std::string getMetadataItem () const
 
std::string getImageDescription () const
 
- Public Member Functions inherited from ImgWriterGdal
void open (const std::string &filename)
 
void open (const std::string &filename, const ImgReaderGdal &imgSrc, const std::vector< std::string > &options=std::vector< std::string >())
 
void open (const std::string &filename, int ncol, int nrow, int nband, const GDALDataType &dataType, const std::string &imageType, const std::vector< std::string > &options=std::vector< std::string >())
 
void close (void)
 
void copyGeoTransform (const ImgReaderGdal &imgSrc)
 
void setProjection (const std::string &projection)
 
std::string setProjectionProj4 (const std::string &projection)
 
void setImageDescription (const std::string &imageDescription)
 
void setGeoTransform (double *gt)
 
template<typename T >
bool writeData (T &value, const GDALDataType &dataType, int col, int row, int band=0) const
 
template<typename T >
bool writeData (std::vector< T > &buffer, const GDALDataType &dataType, int minCol, int maxCol, int row, int band=0) const
 
template<typename T >
bool writeData (std::vector< T > &buffer, const GDALDataType &dataType, int row, int band=0) const
 
bool writeData (void *pdata, const GDALDataType &dataType, int band=0) const
 
template<typename T >
bool writeDataBlock (Vector2d< T > &buffer, const GDALDataType &dataType, int minCol, int maxCol, int minRow, int maxRow, int band=0) const
 
void setColorTable (const std::string &filename, int band=0)
 
void setColorTable (GDALColorTable *colorTable, int band=0)
 
void setMetadata (char **metadata)
 
void rasterizeOgr (ImgReaderOgr &ogrReader, const std::vector< double > &burnValues=std::vector< double >(), const std::vector< std::string > &layernames=std::vector< std::string >())
 

Protected Member Functions

void setCodec ()
 
- Protected Member Functions inherited from ImgReaderGdal
void setCodec (const GDALAccess &readMode=GA_ReadOnly)
 
- Protected Member Functions inherited from ImgWriterGdal
void setCodec (const GDALDataType &dataType, const std::string &imageType)
 
void setCodec (const ImgReaderGdal &ImgSrc)
 

Protected Attributes

std::string m_filename
 
GDALDataset * m_gds
 
int m_ncol
 
int m_nrow
 
int m_nband
 
double m_gt [6]
 
std::vector< double > m_noDataValues
 
std::vector< double > m_scale
 
std::vector< double > m_offset
 
- Protected Attributes inherited from ImgReaderGdal
std::vector< double > m_scale
 
std::vector< double > m_offset
 
- Protected Attributes inherited from ImgRasterGdal
std::string m_filename
 
GDALDataset * m_gds
 
int m_ncol
 
int m_nrow
 
int m_nband
 
double m_gt [6]
 
std::vector< double > m_noDataValues
 
- Protected Attributes inherited from ImgWriterGdal
std::vector< std::string > m_options
 

Detailed Description

Definition at line 27 of file ImgGdal.h.


The documentation for this class was generated from the following files: