26#ifndef __TERRALIB_OGR_INTERNAL_UTILS_H
27#define __TERRALIB_OGR_INTERNAL_UTILS_H
34#include <boost/thread/mutex.hpp>
38#include <ogr_feature.h>
45class OGRSpatialReference;
A class that models the description of a dataset.
This class is responsible for validating field names. It can handle size limits, fix special characte...
It models a property definition.
An Envelope defines a 2D rectangular region.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
Namespace for the DataAccess API of TerraLib.
Namespace for the Data Type module of TerraLib.
Namespace for the Vector Geometry module of TerraLib.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
Namespace for the OGR Driver Implementation of TerraLib.
TEOGREXPORT te::gm::Geometry * Convert2TerraLib(OGRGeometry *ogrGeom)
It converts the OGR Geometry to TerraLib Geometry.
TEOGREXPORT OGRGeomFieldDefn * Convert2OGRGeom(te::dt::Property *p)
It converts the TerraLib Geometric Property Type to OGR Geometric Field Definition.
TEOGREXPORT te::da::DataSetType * GetDataSetType(GDALDataset *gdalDataSet, OGRLayer *ogrLayer, int srs=TE_UNKNOWN_SRS)
It converts the OGR Feature Definition to TerraLib DataSet Type. It also handles FID and Geometry pro...
TEOGREXPORT OGRGeometry * Convert2OGR(const te::gm::Geometry *teGeom)
It converts the TerraLib Geometry to OGR Geometry.
TEOGREXPORT std::string GetOGRConnectionInfo(const std::map< std::string, std::string > &connInfo)
TEOGREXPORT OGRSpatialReference * Convert2OGRProjection(int srid)
It converts the TerraLib Projection to OGR Projection.
bool InitValidator(te::da::FieldNameValidator &validator, OGRFeatureDefn *ogrFeatureDefinition)
TEOGREXPORT boost::mutex & getStaticMutex()
Returns a reference to a static mutex initialized when this module is initialized.
TEOGREXPORT OGRLayer * ExecuteSQL(GDALDataset *gdalDataSet, const std::string &query)
Executes the given query in the given dataSet. Throws exception in case of error. It also handles FID...
TEOGREXPORT GDALDataset * CreateGDALDataSet(const std::string &pszFilename, unsigned int nOpenFlags)
Creates a GDALDataSet based on the given fileName and open flags. The main purpose of this function i...
TEOGREXPORT std::string RemoveSpatialSql(const std::string &sql)
void OGRErrorHandler(CPLErr eErrClass, int errNo, const char *msg)
TEOGREXPORT int Convert2TerraLibProjection(const OGRSpatialReference &osrs)
It converts the OGR Projection to TerraLib Projection.
std::string GetDriverName(const std::string &path)
It tries extract the driver name used by OGR Library based on the given path.
TEOGREXPORT std::vector< std::string > GetOGRDrivers(bool filterCreate=false)
It returns the list of OGR Drivers available.
Namespace for the Spatial Reference System module of TerraLib.
Configuration flags for the OGR Driver Implementation of TerraLib.
#define TEOGREXPORT
You can use this macro in order to export/import classes and functions from this module.
Configuration flags for the TerraLib SRS module.
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.