Namespace for the OGR Driver Implementation of TerraLib. More...
Classes | |
class | DataSet |
Implementation of a DataSet for OGR data provider. More... | |
class | DataSource |
The OGR data source provider. More... | |
class | Globals |
An static class with global definitions. More... | |
class | Module |
The TerraLib OGR driver is a plugin. More... | |
class | SQLVisitor |
class | Transactor |
Functions | |
DataSource * | Build () |
TEOGREXPORT OGRGeometry * | Convert2OGR (const te::gm::Geometry *teGeom) |
It converts the TerraLib Geometry to OGR Geometry. More... | |
TEOGREXPORT OGREnvelope * | Convert2OGR (const te::gm::Envelope *env) |
It converts the TerraLib Envelope to OGR Envelope. More... | |
TEOGREXPORT OGRFeatureDefn * | Convert2OGR (te::da::DataSetType *dt) |
It converts the TerraLib DataSet Type to OGR Feature Definition. More... | |
TEOGREXPORT OGRFieldDefn * | Convert2OGR (te::dt::Property *p) |
It converts the TerraLib Property Type to OGR Field Definition. More... | |
TEOGREXPORT OGRwkbGeometryType | Convert2OGR (te::gm::GeomType geomType) |
It converts the TerraLib Geometry Type element to OGR Geometry Type. More... | |
TEOGREXPORT OGRSpatialReference * | Convert2OGRProjection (int srid) |
It converts the TerraLib Projection to OGR Projection. More... | |
TEOGREXPORT te::gm::Geometry * | Convert2TerraLib (OGRGeometry *ogrGeom) |
It converts the OGR Geometry to TerraLib Geometry. More... | |
TEOGREXPORT te::gm::Envelope * | Convert2TerraLib (const OGREnvelope *env) |
It converts the OGR Envelope to TerraLib Envelope. More... | |
TEOGREXPORT void | Convert2TerraLib (OGRFeatureDefn *featDef, te::da::DataSetType *dt, int srs=TE_UNKNOWN_SRS) |
It inserts a OGR Feature Definition to TerraLib DataSet Type. More... | |
TEOGREXPORT te::da::DataSetType * | Convert2TerraLib (OGRFeatureDefn *featDef, int srs=TE_UNKNOWN_SRS) |
It converts the OGR Feature Definition to TerraLib DataSet Type. More... | |
TEOGREXPORT te::dt::Property * | Convert2TerraLib (OGRFieldDefn *fieldDef) |
It converts the OGR Field Definition to TerraLib Property Type. More... | |
TEOGREXPORT te::gm::GeomType | Convert2TerraLib (OGRwkbGeometryType ogrGeomType) |
It converts the OGR Geometry Type element to TerraLib Geometry Type. More... | |
TEOGREXPORT int | Convert2TerraLibProjection (OGRSpatialReference *osrs) |
It converts the OGR Projection to TerraLib Projection. More... | |
std::string | GetDriverName (const std::string &path) |
It tries extract the driver name used by OGR Library based on the given path. More... | |
TEOGREXPORT std::string | GetOGRConnectionInfo (const std::map< std::string, std::string > &connInfo) |
TEOGREXPORT std::vector< std::string > | GetOGRDrivers (bool filterCreate=false) |
It returns the list of OGR Drivers available. More... | |
TEOGREXPORT std::string | RemoveSpatialSql (const std::string &sql) |
Namespace for the OGR Driver Implementation of TerraLib.
|
inline |
Definition at line 309 of file DataSource.cpp.
Referenced by te::mem::Module::initialize(), te::stmem::Module::initialize(), te::sqlite::Module::startup(), te::pgis::Module::startup(), te::wcs::Module::startup(), te::wms::Module::startup(), te::wfs::Module::startup(), te::gdal::Module::startup(), terralib4::Module::startup(), te::ado::Module::startup(), and te::ogr::Module::startup().
OGRGeometry * te::ogr::Convert2OGR | ( | const te::gm::Geometry * | teGeom | ) |
It converts the TerraLib Geometry to OGR Geometry.
teGeom | A valid TerraLib Geometry. |
Exception | It throws an exception if the TerraLib geometry can not be converted. |
Definition at line 80 of file Utils.cpp.
References Convert2OGRProjection(), te::gm::Geometry::getSRID(), te::gm::Geometry::getWkb(), te::gm::Geometry::getWkbSize(), te::common::Globals::sm_machineByteOrder, and TE_TR.
Referenced by te::ogr::Transactor::add(), te::ogr::Transactor::addProperty(), Convert2OGR(), te::ogr::Transactor::createDataSet(), te::ogr::Transactor::getDataSet(), te::wfs::Transactor::getDataSet(), te::gdal::Rasterize(), and te::ogr::Transactor::update().
OGREnvelope * te::ogr::Convert2OGR | ( | const te::gm::Envelope * | env | ) |
It converts the TerraLib Envelope to OGR Envelope.
env | A valid TerraLib Envelope. |
Definition at line 116 of file Utils.cpp.
References te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, and te::gm::Envelope::m_ury.
OGRFeatureDefn * te::ogr::Convert2OGR | ( | te::da::DataSetType * | dt | ) |
It converts the TerraLib DataSet Type to OGR Feature Definition.
Exception | It throws an exception if the data set type can not be converted. |
Definition at line 305 of file Utils.cpp.
References Convert2OGR(), te::dt::GEOMETRY_TYPE, te::da::GetFirstGeomProperty(), te::gm::GeometryProperty::getGeometryType(), te::dt::Property::getName(), te::dt::CompositeProperty::getProperties(), te::dt::Property::getType(), and te::da::DataSetType::hasGeom().
OGRFieldDefn * te::ogr::Convert2OGR | ( | te::dt::Property * | p | ) |
It converts the TerraLib Property Type to OGR Field Definition.
pt | A valid TerraLib Property Type. |
Exception | It throws an exception if the data type is not supported by OGR. |
Definition at line 398 of file Utils.cpp.
References te::dt::ARRAY_TYPE, te::dt::BYTE_ARRAY_TYPE, te::dt::DATE, te::dt::DATETIME_TYPE, te::dt::DOUBLE_TYPE, te::dt::ArrayProperty::getElementType(), te::dt::Property::getName(), te::dt::DateTimeProperty::getSubType(), te::dt::Property::getType(), te::dt::INT32_TYPE, te::dt::NUMERIC_TYPE, te::dt::STRING_TYPE, TE_TR, te::dt::TIME_DURATION, and te::dt::TIME_INSTANT.
OGRwkbGeometryType te::ogr::Convert2OGR | ( | te::gm::GeomType | geomType | ) |
It converts the TerraLib Geometry Type element to OGR Geometry Type.
geomType | A valid TerraLib Geometry Type. |
Exception | It throws an exception if the geometry type is not supported by OGR. |
Definition at line 520 of file Utils.cpp.
References te::gm::GeometryCollectionMType, te::gm::GeometryCollectionType, te::gm::LineStringMType, te::gm::LineStringType, te::gm::MultiLineStringMType, te::gm::MultiLineStringType, te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::PointMType, te::gm::PointType, te::gm::PolygonMType, te::gm::PolygonType, TE_TR, and te::gm::UnknownGeometryType.
OGRSpatialReference * te::ogr::Convert2OGRProjection | ( | int | srid | ) |
It converts the TerraLib Projection to OGR Projection.
srid | A valid TerraLib Projection id. |
Exception | It throws an exception if the SRS can not be imported using OGR. |
Definition at line 221 of file Utils.cpp.
References te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), and TE_TR.
Referenced by Convert2OGR(), and te::ogr::Transactor::createDataSet().
te::gm::Geometry * te::ogr::Convert2TerraLib | ( | OGRGeometry * | ogrGeom | ) |
It converts the OGR Geometry to TerraLib Geometry.
ogrGeom | A valid OGR Geometry. |
Exception | It throws an exception if the OGR geometry can not be converted. |
Definition at line 55 of file Utils.cpp.
References te::gm::WKBReader::read().
Referenced by te::qt::widgets::Config2DrawLines(), te::qt::widgets::Config2DrawPoints(), te::qt::widgets::Config2DrawPolygons(), te::sqlite::Convert2TerraLib(), Convert2TerraLib(), te::pgis::Convert2TerraLib(), te::ogr::DataSet::DataSet(), te::ogr::Transactor::getDataSetType(), te::wfs::Transactor::getDataSetType(), te::ogr::DataSet::getExtent(), te::ogr::Transactor::getExtent(), te::wfs::Transactor::getExtent(), te::ogr::Transactor::getProperties(), te::ogr::Transactor::getProperty(), te::wfs::Transactor::getProperty(), and te::gdal::Vectorize().
te::gm::Envelope * te::ogr::Convert2TerraLib | ( | const OGREnvelope * | env | ) |
void te::ogr::Convert2TerraLib | ( | OGRFeatureDefn * | featDef, |
te::da::DataSetType * | dt, | ||
int | srs = TE_UNKNOWN_SRS |
||
) |
It inserts a OGR Feature Definition to TerraLib DataSet Type.
featDef | A valid OGR Feature Definition. |
dt | Pointer to a TerraLib dataset type previously created. Do not pass NULL. |
srs | Optional parameter to set the SRS of geometry fields. |
Exception | It throws an exception if the feature definition can not be converted. |
Definition at line 271 of file Utils.cpp.
References te::da::DataSetType::add(), and Convert2TerraLib().
te::da::DataSetType * te::ogr::Convert2TerraLib | ( | OGRFeatureDefn * | featDef, |
int | srs = TE_UNKNOWN_SRS |
||
) |
It converts the OGR Feature Definition to TerraLib DataSet Type.
featDef | A valid OGR Feature Definition. |
srs | Optional parameter to set the SRS of geometry fields. |
Exception | It throws an exception if the feature definition can not be converted. |
Definition at line 294 of file Utils.cpp.
References Convert2TerraLib(), and te::da::DataSetType::setTitle().
te::dt::Property * te::ogr::Convert2TerraLib | ( | OGRFieldDefn * | fieldDef | ) |
It converts the OGR Field Definition to TerraLib Property Type.
fieldDef | A valid OGR Field Definition. |
Exception | It throws an exception if the data type is not supported by TerraLib. |
Definition at line 326 of file Utils.cpp.
References te::dt::BYTE_ARRAY_TYPE, te::dt::DATE, te::dt::DOUBLE_TYPE, te::dt::INT32_TYPE, te::common::LATIN1, te::dt::StringProperty::setCharEncoding(), te::dt::STRING, TE_TR, te::dt::TIME_DURATION, te::dt::TIME_INSTANT, and te::dt::VAR_STRING.
te::gm::GeomType te::ogr::Convert2TerraLib | ( | OGRwkbGeometryType | ogrGeomType | ) |
It converts the OGR Geometry Type element to TerraLib Geometry Type.
ogrGeomType | A valid OGR Geometry Type element. |
Definition at line 463 of file Utils.cpp.
References te::gm::GeometryCollectionMType, te::gm::GeometryCollectionType, te::gm::GeometryType, te::gm::LineStringMType, te::gm::LineStringType, te::gm::MultiLineStringMType, te::gm::MultiLineStringType, te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::PointMType, and te::gm::UnknownGeometryType.
int te::ogr::Convert2TerraLibProjection | ( | OGRSpatialReference * | osrs | ) |
It converts the OGR Projection to TerraLib Projection.
osrs | A valid OGR Projection. |
Definition at line 126 of file Utils.cpp.
References te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), TE_SRS_SIRGAS2000, and TE_UNKNOWN_SRS.
Referenced by te::ogr::DataSet::DataSet(), te::ogr::Transactor::getDataSetType(), te::wfs::Transactor::getDataSetType(), te::gdal::GetGrid(), and te::ogr::Transactor::getProperties().
std::string te::ogr::GetDriverName | ( | const std::string & | path | ) |
It tries extract the driver name used by OGR Library based on the given path.
path | The path that will be consulted. |
Definition at line 574 of file Utils.cpp.
Referenced by te::ogr::DataSource::createDataSet(), and te::ogr::DataSource::drop().
std::string te::ogr::GetOGRConnectionInfo | ( | const std::map< std::string, std::string > & | connInfo | ) |
std::vector< std::string > te::ogr::GetOGRDrivers | ( | bool | filterCreate = false | ) |
std::string te::ogr::RemoveSpatialSql | ( | const std::string & | sql | ) |
Definition at line 637 of file Utils.cpp.
Referenced by te::ogr::Transactor::query(), and te::wfs::Transactor::query().