26 #ifndef __TERRALIB_OGR_INTERNAL_UTILS_H 27 #define __TERRALIB_OGR_INTERNAL_UTILS_H 31 #include "../srs/Config.h" 34 #include <boost/thread/mutex.hpp> 38 #include <cpl_error.h> 44 class OGRSpatialReference;
279 #endif // __TERRALIB_OGR_INTERNAL_UTILS_H TEOGREXPORT OGRGeometry * Convert2OGR(const te::gm::Geometry *teGeom)
It converts the TerraLib Geometry to OGR Geometry.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
A class that models the description of a dataset.
#define TEOGREXPORT
You can use this macro in order to export/import classes and functions from this module.
It models a property definition.
std::string GetDriverName(const std::string &path)
It tries extract the driver name used by OGR Library based on the given path.
TEOGREXPORT std::string GetOGRConnectionInfo(const std::map< std::string, std::string > &connInfo)
TEOGREXPORT int Convert2TerraLibProjection(OGRSpatialReference *osrs)
It converts the OGR Projection to TerraLib Projection.
An Envelope defines a 2D rectangular region.
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Configuration flags for the OGR Driver Implementation of TerraLib.
TEOGREXPORT boost::mutex & getStaticMutex()
Returns a reference to a static mutex initialized when this module is initialized.
TEOGREXPORT GDALDataset * CreateGDALDataSet(const std::string &pszFilename, unsigned int nOpenFlags)
Creats a GDALDataSet based on the given fileName and open flags. The main purpose of this function is...
void OGRErrorHandler(CPLErr eErrClass, int errNo, const char *msg)
TEOGREXPORT std::vector< std::string > GetOGRDrivers(bool filterCreate=false)
It returns the list of OGR Drivers available.
TEOGREXPORT te::gm::Geometry * Convert2TerraLib(OGRGeometry *ogrGeom)
It converts the OGR Geometry to TerraLib Geometry.
TEOGREXPORT OGRSpatialReference * Convert2OGRProjection(int srid)
It converts the TerraLib Projection to OGR Projection.
TEOGREXPORT std::string RemoveSpatialSql(const std::string &sql)