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

Public Member Functions

 ImgWriterOgr (const std::string &filename, const std::string &imageType="ESRI Shapefile")
 
 ImgWriterOgr (const std::string &filename, ImgReaderOgr &imgReaderOgr)
 
 ImgWriterOgr (const std::string &filename, ImgReaderOgr &imgReaderOgr, bool copyData)
 
void open (const std::string &filename, ImgReaderOgr &imgReaderOgr)
 
void open (const std::string &filename, const std::string &imageType="ESRI Shapefile")
 
void close (void)
 
int ascii2ogr (const std::string &filename, const std::string &layername, const std::vector< std::string > &fieldName, const std::vector< OGRFieldType > &fieldType, short colX=1, short colY=2, const std::string &theProjection="", const OGRwkbGeometryType &eGType=wkbPoint, const char fs=' ')
 
OGRLayer * createLayer (const std::string &layername="New layer", const std::string &theProjection="", const OGRwkbGeometryType &eGType=wkbUnknown, char **papszOptions=NULL)
 
OGRLayer * copyLayer (OGRLayer *poSrcLayer, const std::string &layername, char **papszOptions=NULL)
 
void createField (const std::string &fieldname, const OGRFieldType &fieldType, int theLayer=0)
 
OGRLayer * getLayer (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
 
void copyFields (const ImgReaderOgr &imgReaderOgr, int srcLayer=0, int targetLayer=0)
 
void addLineString (std::vector< OGRPoint *> &points, const std::string &fieldName, const std::string &theId, int layer=0)
 
void addRing (std::vector< OGRPoint *> &points, const std::string &fieldName, int theId, int layer=0)
 
void addLineString (std::vector< OGRPoint *> &points, const std::string &fieldName, int theId, int layer=0)
 
void addPoint (double x, double y, const std::map< std::string, double > &pointAttributes, std::string fieldName, const std::string &theId, int layer=0)
 
void addPoint (double x, double y, const std::map< std::string, double > &pointAttributes, std::string fieldName, int theId, int layer=0)
 
int addData (ImgReaderGdal &imgReader, int layer=0, bool verbose=false)
 
OGRFeature * createFeature (int layer=0)
 
OGRErr createFeature (OGRFeature *theFeature, int layer=0)
 
int getFieldCount (int layer=0) const
 
int getFeatureCount (int layer=0) const
 
OGRDataSource * getDataSource (void)
 
OGRSFDriver * getDriver (void) const
 

Protected Member Functions

void setCodec (const std::string &imageType)
 
void setCodec (OGRSFDriver *poDriver)
 

Protected Attributes

std::string m_filename
 
OGRDataSource * m_datasource
 

Detailed Description

Definition at line 35 of file ImgWriterOgr.h.


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