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 | SQLVisitor |
| class | Transactor |
Functions | |
| DataSource * | Build () |
| TERRAMOBILEPLUGINSDLLEXPORT OGRGeometry * | Convert2OGR (const te::gm::Geometry *teGeom) |
| It converts the TerraLib Geometry to OGR Geometry. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT OGREnvelope * | Convert2OGR (const te::gm::Envelope *env) |
| It converts the TerraLib Envelope to OGR Envelope. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT OGRFeatureDefn * | Convert2OGR (te::da::DataSetType *dt) |
| It converts the TerraLib DataSet Type to OGR Feature Definition. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT OGRFieldDefn * | Convert2OGR (te::dt::Property *p) |
| It converts the TerraLib Property Type to OGR Field Definition. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT OGRwkbGeometryType | Convert2OGR (te::gm::GeomType geomType) |
| It converts the TerraLib Geometry Type element to OGR Geometry Type. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT OGRSpatialReference * | Convert2OGRProjection (int srid) |
| It converts the TerraLib Projection to OGR Projection. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT te::gm::Geometry * | Convert2TerraLib (OGRGeometry *ogrGeom) |
| It converts the OGR Geometry to TerraLib Geometry. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT te::gm::Envelope * | Convert2TerraLib (const OGREnvelope *env) |
| It converts the OGR Envelope to TerraLib Envelope. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT void | Convert2TerraLib (OGRFeatureDefn *featDef, te::da::DataSetType *dt, int srs=TE_UNKNOWN_SRS) |
| It inserts a OGR Feature Definition to TerraLib DataSet Type. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT te::da::DataSetType * | Convert2TerraLib (OGRFeatureDefn *featDef, int srs=TE_UNKNOWN_SRS) |
| It converts the OGR Feature Definition to TerraLib DataSet Type. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT te::dt::Property * | Convert2TerraLib (OGRFieldDefn *fieldDef) |
| It converts the OGR Field Definition to TerraLib Property Type. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT te::gm::GeomType | Convert2TerraLib (OGRwkbGeometryType ogrGeomType) |
| It converts the OGR Geometry Type element to TerraLib Geometry Type. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT int | Convert2TerraLibProjection (OGRSpatialReference *osrs) |
| It converts the OGR Projection to TerraLib Projection. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT void | copyToGeopackage (te::rst::Raster *raster, std::string outFileName) |
| TERRAMOBILEPLUGINSDLLEXPORT void | createGeopackage (std::string outFileName) |
| std::string | GetDriverName (const std::string &path) |
| It tries extract the driver name used by OGR Library based on the given path. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT std::string | GetOGRConnectionInfo (const std::map< std::string, std::string > &connInfo) |
| TERRAMOBILEPLUGINSDLLEXPORT std::vector< std::string > | GetOGRDrivers (bool filterCreate=false) |
| It returns the list of OGR Drivers available. More... | |
| TERRAMOBILEPLUGINSDLLEXPORT std::string | RemoveSpatialSql (const std::string &sql) |
|
inline |
Definition at line 333 of file src/terralib/qt/plugins/mobile/geopackage/DataSource.cpp.
References te::gpkg::DataSource::DataSource(), and DataSource().
Referenced by te::sqlite::Module::startup(), and te::qt::plugins::terramobile::Plugin::startup().
| OGRGeometry * te::gpkg::Convert2OGR | ( | const te::gm::Geometry * | teGeom | ) |
It converts the TerraLib Geometry to OGR Geometry.
| teGeom | A valid TerraLib Geometry. |
Definition at line 90 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
References te::ogr::Convert2OGRProjection(), te::gm::Geometry::getSRID(), te::gm::Geometry::getWkb(), te::gm::Geometry::getWkbSize(), te::common::Globals::sm_machineByteOrder, and TE_TR.
Referenced by te::gpkg::Transactor::add(), te::gpkg::Transactor::addProperty(), te::gpkg::Transactor::createDataSet(), te::gpkg::Transactor::getDataSet(), and te::gpkg::Transactor::update().
| OGREnvelope * te::gpkg::Convert2OGR | ( | const te::gm::Envelope * | env | ) |
It converts the TerraLib Envelope to OGR Envelope.
| env | A valid TerraLib Envelope. |
Definition at line 126 of file src/terralib/qt/plugins/mobile/geopackage/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::gpkg::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 315 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
References te::ogr::Convert2OGR(), te::dt::GEOMETRY_TYPE, te::da::GetFirstGeomProperty(), te::gm::GeometryProperty::getGeometryType(), te::dt::Property::getName(), te::dt::CompositeProperty::getProperties(), te::dt::Property::getType(), te::da::DataSetType::hasGeom(), and p.
| OGRFieldDefn * te::gpkg::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 401 of file src/terralib/qt/plugins/mobile/geopackage/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, p, te::dt::STRING_TYPE, TE_TR, te::dt::TIME_DURATION, and te::dt::TIME_INSTANT.
| OGRwkbGeometryType te::gpkg::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 526 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
References te::gm::GeometryCollectionMType, te::gm::GeometryCollectionType, te::gm::GeometryCollectionZMType, te::gm::GeometryCollectionZType, te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::gm::MultiLineStringMType, te::gm::MultiLineStringType, te::gm::MultiLineStringZMType, te::gm::MultiLineStringZType, te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPointZMType, te::gm::MultiPointZType, te::gm::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::MultiPolygonZMType, te::gm::MultiPolygonZType, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, te::gm::PointZType, te::gm::PolygonMType, te::gm::PolygonType, te::gm::PolygonZMType, te::gm::PolygonZType, te::gm::PolyhedralSurfaceMType, te::gm::PolyhedralSurfaceType, te::gm::PolyhedralSurfaceZMType, te::gm::PolyhedralSurfaceZType, TE_TR, te::gm::TINMType, te::gm::TINType, te::gm::TINZMType, te::gm::TINZType, te::gm::TriangleMType, te::gm::TriangleType, te::gm::TriangleZMType, te::gm::TriangleZType, and te::gm::UnknownGeometryType.
| OGRSpatialReference * te::gpkg::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 231 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
References te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), and TE_TR.
Referenced by te::gpkg::Transactor::createDataSet().
| te::gm::Geometry * te::gpkg::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 65 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
References te::gm::WKBReader::read().
Referenced by Convert2TerraLib(), te::gpkg::DataSet::DataSet(), te::gpkg::Transactor::getDataSetType(), te::gpkg::DataSet::getExtent(), te::gpkg::Transactor::getExtent(), te::gpkg::Transactor::getProperties(), and te::gpkg::Transactor::getProperty().
| te::gm::Envelope * te::gpkg::Convert2TerraLib | ( | const OGREnvelope * | env | ) |
It converts the OGR Envelope to TerraLib Envelope.
| env | A valid OGR Envelope. |
Definition at line 121 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
| void te::gpkg::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 281 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
References te::da::DataSetType::add(), te::sqlite::Convert2TerraLib(), and p.
| te::da::DataSetType * te::gpkg::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 304 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
References Convert2TerraLib(), dt, and te::da::DataSetType::setTitle().
| te::dt::Property * te::gpkg::Convert2TerraLib | ( | OGRFieldDefn * | fieldDef | ) |
It converts the OGR Field Definition to TerraLib Property Type.
| fieldDef | A valid OGR Field Definition. |
Definition at line 336 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
References te::dt::BYTE_ARRAY_TYPE, te::dt::DATE, te::dt::DOUBLE_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, p, te::dt::STRING, TE_TR, te::dt::TIME_DURATION, te::dt::TIME_INSTANT, and te::dt::VAR_STRING.
| te::gm::GeomType te::gpkg::Convert2TerraLib | ( | OGRwkbGeometryType | ogrGeomType | ) |
It converts the OGR Geometry Type element to TerraLib Geometry Type.
| ogrGeomType | A valid OGR Geometry Type element. |
Definition at line 466 of file src/terralib/qt/plugins/mobile/geopackage/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::MultiSurfaceType, te::gm::PointMType, and te::gm::UnknownGeometryType.
| int te::gpkg::Convert2TerraLibProjection | ( | OGRSpatialReference * | osrs | ) |
It converts the OGR Projection to TerraLib Projection.
| osrs | A valid OGR Projection. |
Definition at line 136 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
References te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), TE_SRS_SIRGAS2000, and TE_UNKNOWN_SRS.
Referenced by te::gpkg::DataSet::DataSet(), te::gpkg::Transactor::getDataSetType(), and te::gpkg::Transactor::getProperties().
| void te::gpkg::copyToGeopackage | ( | te::rst::Raster * | raster, |
| std::string | outFileName | ||
| ) |
Definition at line 710 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
References te::gdal::Raster::getGDALDataset(), and te::gdal::Raster::getMultiResLevelsCount().
Referenced by exportRastertoGPKG().
| void te::gpkg::createGeopackage | ( | std::string | outFileName | ) |
Definition at line 695 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
Referenced by te::qt::plugins::terramobile::createGeopackage().
| std::string te::gpkg::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 611 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
Referenced by te::gpkg::DataSource::createDataSet(), and te::gpkg::DataSource::drop().
| std::string te::gpkg::GetOGRConnectionInfo | ( | const std::map< std::string, std::string > & | connInfo | ) |
Definition at line 659 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
References TE_TR.
| std::vector< std::string > te::gpkg::GetOGRDrivers | ( | bool | filterCreate = false | ) |
It returns the list of OGR Drivers available.
| filterCreate | Set TRUE to indicate to retrieve only the drivers with the capacity to create datasources. |
Definition at line 641 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
| std::string te::gpkg::RemoveSpatialSql | ( | const std::string & | sql | ) |
Definition at line 674 of file src/terralib/qt/plugins/mobile/geopackage/Utils.cpp.
Referenced by te::gpkg::Transactor::query().