Utility functions for OGR support. More...
#include "Config.h"
#include "../srs/Config.h"
#include <boost/thread/mutex.hpp>
#include <ogr_core.h>
#include <ogr_feature.h>
#include <cpl_error.h>
Go to the source code of this file.
Namespaces | |
namespace | te |
TerraLib. | |
namespace | te::da |
Namespace for the DataAccess API of TerraLib. | |
namespace | te::gm |
Namespace for the Vector Geometry module of TerraLib. | |
namespace | te::ogr |
Namespace for the OGR Driver Implementation of TerraLib. | |
Functions | |
TEOGREXPORT OGREnvelope * | te::ogr::Convert2OGR (const te::gm::Envelope *env) |
It converts the TerraLib Envelope to OGR Envelope. | |
TEOGREXPORT OGRGeometry * | te::ogr::Convert2OGR (const te::gm::Geometry *teGeom) |
It converts the TerraLib Geometry to OGR Geometry. | |
TEOGREXPORT OGRGeometry * | te::ogr::Convert2OGR (const te::gm::Geometry *teGeom, OGRSpatialReference *srs) |
It converts the TerraLib Geometry to OGR Geometry. | |
TEOGREXPORT OGRFeatureDefn * | te::ogr::Convert2OGR (te::da::DataSetType *dt) |
It converts the TerraLib DataSet Type to OGR Feature Definition. | |
TEOGREXPORT OGRFieldDefn * | te::ogr::Convert2OGR (te::dt::Property *p) |
It converts the TerraLib Property Type to OGR Field Definition. | |
TEOGREXPORT OGRwkbGeometryType | te::ogr::Convert2OGR (te::gm::GeomType geomType) |
It converts the TerraLib Geometry Type element to OGR Geometry Type. | |
TEOGREXPORT OGRGeomFieldDefn * | te::ogr::Convert2OGRGeom (te::dt::Property *p) |
It converts the TerraLib Geometric Property Type to OGR Geometric Field Definition. | |
TEOGREXPORT OGRSpatialReference * | te::ogr::Convert2OGRProjection (int srid) |
It converts the TerraLib Projection to OGR Projection. | |
TEOGREXPORT te::gm::Envelope * | te::ogr::Convert2TerraLib (const OGREnvelope *env) |
It converts the OGR Envelope to TerraLib Envelope. | |
TEOGREXPORT te::da::DataSetType * | te::ogr::Convert2TerraLib (OGRFeatureDefn *featDef, const std::string &geometryPropertyName, int srs=TE_UNKNOWN_SRS) |
It converts the OGR Feature Definition to TerraLib DataSet Type. | |
TEOGREXPORT void | te::ogr::Convert2TerraLib (OGRFeatureDefn *featDef, te::da::DataSetType *dt, const std::string &geometryPropertyName, int srs=TE_UNKNOWN_SRS) |
It inserts a OGR Feature Definition to TerraLib DataSet Type. | |
TEOGREXPORT te::dt::Property * | te::ogr::Convert2TerraLib (OGRFieldDefn *fieldDef) |
It converts the OGR Field Definition to TerraLib Property Type. | |
TEOGREXPORT te::gm::Geometry * | te::ogr::Convert2TerraLib (OGRGeometry *ogrGeom) |
It converts the OGR Geometry to TerraLib Geometry. | |
TEOGREXPORT te::gm::GeomType | te::ogr::Convert2TerraLib (OGRwkbGeometryType ogrGeomType) |
It converts the OGR Geometry Type element to TerraLib Geometry Type. | |
TEOGREXPORT int | te::ogr::Convert2TerraLibProjection (const OGRSpatialReference &osrs) |
It converts the OGR Projection to TerraLib Projection. | |
TEOGREXPORT int | te::ogr::Convert2TerraLibProjection (OGRSpatialReference *osrs) |
It converts the OGR Projection to TerraLib Projection. | |
TEOGREXPORT GDALDataset * | te::ogr::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 is to ensure that known files with extensions will be open if the correct drivers. | |
TEOGREXPORT OGRLayer * | te::ogr::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 for specific drivers. | |
TEOGREXPORT te::da::DataSetType * | te::ogr::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 property issues. | |
std::string | te::ogr::GetDriverName (const std::string &path) |
It tries extract the driver name used by OGR Library based on the given path. | |
TEOGREXPORT std::string | te::ogr::GetOGRConnectionInfo (const std::map< std::string, std::string > &connInfo) |
TEOGREXPORT std::vector< std::string > | te::ogr::GetOGRDrivers (bool filterCreate=false) |
It returns the list of OGR Drivers available. | |
TEOGREXPORT boost::mutex & | te::ogr::getStaticMutex () |
Returns a reference to a static mutex initialized when this module is initialized. | |
bool | te::ogr::InitValidator (te::da::FieldNameValidator &validator, OGRFeatureDefn *ogrFeatureDefinition) |
void | te::ogr::OGRErrorHandler (CPLErr eErrClass, int errNo, const char *msg) |
TEOGREXPORT std::string | te::ogr::RemoveSpatialSql (const std::string &sql) |
Utility functions for OGR support.
Definition in file Utils.h.