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

Public Member Functions

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)
 
std::string getFileName () const
 
int nrOfCol (void) const
 
int nrOfRow (void) const
 
int nrOfBand (void) const
 
void copyGeoTransform (const ImgReaderGdal &imgSrc)
 
std::string setProjection (void)
 
void setProjection (const std::string &projection)
 
std::string setProjectionProj4 (const std::string &projection)
 
void setImageDescription (const std::string &imageDescription)
 
CPLErr GDALSetNoDataValue (double noDataValue, int band=0)
 
std::string getProjection (void) const
 
std::string getGeoTransform () const
 
void getGeoTransform (double *gt) const
 
void setGeoTransform (double *gt)
 
bool getBoundingBox (double &ulx, double &uly, double &lrx, double &lry) const
 
bool getCentrePos (double &x, double &y) const
 
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
 
bool isGeoRef () const
 
double getDeltaX (void) const
 
double getDeltaY (void) const
 
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
 
GDALDataType getDataType (int band=0) const
 
GDALRasterBand * getRasterBand (int band)
 
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 (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
 
GDALDataType m_type
 
double m_gt [6]
 
std::vector< std::string > m_options
 

Detailed Description

Definition at line 32 of file ImgWriterGdal.h.


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