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

Public Member Functions

 ImgReaderOgr (const std::string &filename)
 
void open (const std::string &filename)
 
void close (void)
 
template<typename T >
int readXY (std::vector< T > &xVector, std::vector< T > &yVector, int layer=0, bool verbose=false)
 
template<typename T >
int readY (std::vector< T > &yVector, int layer=0, bool verbose=false)
 
template<typename T >
int readData (std::vector< T > &data, const OGRFieldType &fieldType, std::vector< std::string > &fields, OGRFeature *poFeature, int layer=0, bool pos=false, bool verbose=false)
 
template<typename T >
int readData (std::vector< T > &data, const OGRFieldType &fieldType, const std::string &theField, int layer=0, bool verbose=false)
 
template<typename T >
int readData (Vector2d< T > &data, const OGRFieldType &fieldType, std::vector< std::string > &fields, int layer=0, bool pos=false, bool verbose=false)
 
template<typename T >
int readData (std::map< int, Vector2d< T > > &data, const OGRFieldType &fieldType, std::vector< std::string > &fields, const std::string &label, int layer=0, bool pos=false, bool verbose=false)
 
template<typename T >
int readData (std::map< std::string, Vector2d< T > > &data, const OGRFieldType &fieldType, std::vector< std::string > &fields, const std::string &label, int layer=0, bool pos=false, bool verbose=false)
 
unsigned int readDataImageOgr (std::map< std::string, Vector2d< float > > &mapPixels, std::vector< std::string > &fields, const std::vector< unsigned short > &bands, const std::string &label, const std::vector< std::string > &layers, int verbose=false)
 
unsigned int readDataImageOgr (std::map< std::string, Vector2d< float > > &mapPixels, std::vector< std::string > &fields, double start, double end, const std::string &label, const std::vector< std::string > &layers, int verbose=false)
 
unsigned long int getFeatureCount (int layer=0) const
 
int getFieldCount (int layer=0) const
 
OGRLayer * getLayer (int layer=0)
 
std::string getProjection (int layer=0) const
 
OGRwkbGeometryType getGeometryType (int layer=0) const
 
std::string getLayerName (int layer=0)
 
int getFields (std::vector< std::string > &fields, int layer=0) const
 
int getFields (std::vector< OGRFieldDefn * > &fields, int layer=0) const
 
OGRDataSource * getDataSource (void)
 
OGRSFDriver * getDriver (void) const
 
int getLayerCount (void) const
 
template<typename T >
int readSql (Vector2d< T > &data, const OGRFieldType &fieldType, std::vector< std::string > &fields, const std::string &sqlStatement, OGRGeometry *spatialFilter=NULL, int layer=0, bool pos=false, bool verbose=false)
 
template<typename T >
int readSql (std::map< int, Vector2d< T > > &data, const OGRFieldType &fieldType, std::vector< std::string > &fields, const std::string &label, const std::string &sqlStatement, OGRGeometry *spatialFilter, int layer=0, bool pos=false, bool verbose=false)
 
bool getExtent (double &ulx, double &uly, double &lrx, double &lry, int layer)
 
bool getExtent (double &ulx, double &uly, double &lrx, double &lry)
 
void setFieldSeparator (const char fs)
 
char getFieldSeparator () const
 
template<>
int readData (std::vector< std::string > &data, const OGRFieldType &fieldType, const std::string &theField, int layer, bool verbose)
 

Protected Member Functions

void setCodec (void)
 

Protected Attributes

std::string m_filename
 
OGRDataSource * m_datasource
 
char m_fs
 

Friends

std::ostream & operator<< (std::ostream &theOstream, ImgReaderOgr &theImageReader)
 

Detailed Description

Definition at line 35 of file ImgReaderOgr.h.


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