![]() |
pktools 2.6.7
Processing Kernel for geospatial data
|

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) |
Definition at line 35 of file ImgReaderOgr.h.
| ImgReaderOgr::ImgReaderOgr | ( | void | ) |
Definition at line 26 of file ImgReaderOgr.cc.
| ImgReaderOgr::ImgReaderOgr | ( | const std::string & | filename | ) |
Definition at line 30 of file ImgReaderOgr.cc.
| ImgReaderOgr::~ImgReaderOgr | ( | void | ) |
Definition at line 35 of file ImgReaderOgr.cc.
| void ImgReaderOgr::close | ( | void | ) |
Definition at line 49 of file ImgReaderOgr.cc.
|
inline |
Definition at line 77 of file ImgReaderOgr.h.
|
inline |
Definition at line 78 of file ImgReaderOgr.h.
| bool ImgReaderOgr::getExtent | ( | double & | ulx, |
| double & | uly, | ||
| double & | lrx, | ||
| double & | lry | ||
| ) |
Definition at line 100 of file ImgReaderOgr.cc.
| bool ImgReaderOgr::getExtent | ( | double & | ulx, |
| double & | uly, | ||
| double & | lrx, | ||
| double & | lry, | ||
| int | layer | ||
| ) |
Definition at line 86 of file ImgReaderOgr.cc.
| unsigned long int ImgReaderOgr::getFeatureCount | ( | int | layer = 0 | ) | const |
Definition at line 130 of file ImgReaderOgr.cc.
| int ImgReaderOgr::getFieldCount | ( | int | layer = 0 | ) | const |
Definition at line 135 of file ImgReaderOgr.cc.
| int ImgReaderOgr::getFields | ( | std::vector< OGRFieldDefn * > & | fields, |
| int | layer = 0 |
||
| ) | const |
Definition at line 169 of file ImgReaderOgr.cc.
| int ImgReaderOgr::getFields | ( | std::vector< std::string > & | fields, |
| int | layer = 0 |
||
| ) | const |
Definition at line 149 of file ImgReaderOgr.cc.
|
inline |
Definition at line 91 of file ImgReaderOgr.h.
| OGRwkbGeometryType ImgReaderOgr::getGeometryType | ( | int | layer = 0 | ) | const |
Definition at line 201 of file ImgReaderOgr.cc.
|
inline |
Definition at line 69 of file ImgReaderOgr.h.
|
inline |
Definition at line 83 of file ImgReaderOgr.h.
|
inline |
Definition at line 72 of file ImgReaderOgr.h.
| std::string ImgReaderOgr::getProjection | ( | int | layer = 0 | ) | const |
Definition at line 190 of file ImgReaderOgr.cc.
| void ImgReaderOgr::open | ( | const std::string & | filename | ) |
Definition at line 41 of file ImgReaderOgr.cc.
| int ImgReaderOgr::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 |
||
| ) |
Definition at line 107 of file ImgReaderOgr.h.
| int ImgReaderOgr::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 |
||
| ) |
Definition at line 238 of file ImgReaderOgr.h.
|
inline |
Definition at line 588 of file ImgReaderOgr.h.
|
inline |
Definition at line 514 of file ImgReaderOgr.h.
| int ImgReaderOgr::readData | ( | std::vector< T > & | data, |
| const OGRFieldType & | fieldType, | ||
| std::vector< std::string > & | fields, | ||
| OGRFeature * | poFeature, | ||
| int | layer = 0, |
||
| bool | pos = false, |
||
| bool | verbose = false |
||
| ) |
Definition at line 419 of file ImgReaderOgr.h.
| int ImgReaderOgr::readData | ( | Vector2d< T > & | data, |
| const OGRFieldType & | fieldType, | ||
| std::vector< std::string > & | fields, | ||
| int | layer = 0, |
||
| bool | pos = false, |
||
| bool | verbose = false |
||
| ) |
Definition at line 662 of file ImgReaderOgr.h.
| unsigned int ImgReaderOgr::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 |
||
| ) |
Definition at line 273 of file ImgReaderOgr.cc.
| unsigned int ImgReaderOgr::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 |
||
| ) |
Definition at line 363 of file ImgReaderOgr.cc.
| int ImgReaderOgr::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 |
||
| ) |
Definition at line 755 of file ImgReaderOgr.h.
| int ImgReaderOgr::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 |
||
| ) |
Definition at line 865 of file ImgReaderOgr.h.
| int ImgReaderOgr::readXY | ( | std::vector< T > & | xVector, |
| std::vector< T > & | yVector, | ||
| int | layer = 0, |
||
| bool | verbose = false |
||
| ) |
Definition at line 374 of file ImgReaderOgr.h.
|
protected |
Definition at line 59 of file ImgReaderOgr.cc.
|
inline |
Definition at line 90 of file ImgReaderOgr.h.
|
friend |
Definition at line 206 of file ImgReaderOgr.cc.
|
protected |
Definition at line 99 of file ImgReaderOgr.h.
|
protected |
Definition at line 97 of file ImgReaderOgr.h.
|
protected |
Definition at line 103 of file ImgReaderOgr.h.
1.9.3