Utility functions for the data access module. More...
#include "../../geometry/Enums.h"#include "../datasource/DataSource.h"#include "../query/Expression.h"#include "../query/Fields.h"#include "../query/Select.h"#include <boost/ptr_container/ptr_vector.hpp>#include <memory>#include <string>#include <vector>Go to the source code of this file.
Namespaces | |
| te | |
| URI C++ Library. | |
| te::da | |
| Namespace for the DataAccess API of TerraLib. | |
| te::dt | |
| Namespace for the Data Type module of TerraLib. | |
| te::gm | |
| Namespace for the Vector Geometry module of TerraLib. | |
| te::rst | |
| Namespace for the Raster module of TerraLib. | |
Functions | |
| TEDATAACCESSEXPORT std::auto_ptr< Fields > | te::da::BuildFields (const std::vector< std::string > &properties) |
| TEDATAACCESSEXPORT std::auto_ptr< Select > | te::da::BuildSelect (const std::string &dsname) |
| TEDATAACCESSEXPORT std::auto_ptr< Select > | te::da::BuildSelect (const std::string &dsname, const std::string &propertyName) |
| TEDATAACCESSEXPORT std::auto_ptr< Select > | te::da::BuildSelect (const std::string &dsname, const std::vector< std::string > &properties) |
| TEDATAACCESSEXPORT std::auto_ptr< Select > | te::da::BuildSelect (const std::string &dsname, const std::vector< std::string > &properties, const std::string &geometryProperty, const te::gm::Envelope *e, int srid, te::gm::SpatialRelation r) |
| TEDATAACCESSEXPORT std::auto_ptr< Select > | te::da::BuildSelect (const std::string &dsname, const std::vector< std::string > &properties, const std::string &geometryProperty, te::gm::Geometry *g, te::gm::SpatialRelation r) |
| TEDATAACCESSEXPORT std::auto_ptr< Select > | te::da::BuildSelect (const std::string &dsname, const std::vector< std::string > &properties, const ObjectIdSet *oids) |
| TEDATAACCESSEXPORT std::auto_ptr< Expression > | te::da::BuildSpatialOp (Expression *e1, Expression *e2, te::gm::SpatialRelation r) |
| TEDATAACCESSEXPORT void | te::da::Create (DataSource *ds, DataSetType *dt, DataSet *d, std::size_t limit=0) |
| It creates the dataset definition in a data source and then fill it with data from the input dataset. More... | |
| TEDATAACCESSEXPORT void | te::da::Create (DataSource *ds, DataSetType *dt, DataSet *d, const std::map< std::string, std::string > &options, std::size_t limit=0) |
| It creates the dataset definition in a data source and then fill it with data from the input dataset. More... | |
| TEDATAACCESSEXPORT DataSetAdapter * | te::da::CreateAdapter (DataSet *ds, DataSetTypeConverter *converter, bool isOwner=false) |
| TEDATAACCESSEXPORT ObjectId * | te::da::GenerateOID (DataSet *dataset, const std::vector< std::string > &names) |
| TEDATAACCESSEXPORT ObjectIdSet * | te::da::GenerateOIDSet (DataSet *dataset, const DataSetType *type) |
| TEDATAACCESSEXPORT ObjectIdSet * | te::da::GenerateOIDSet (DataSet *dataset, const std::vector< std::string > &names) |
| TEDATAACCESSEXPORT DataSet * | te::da::GetDataSet (const std::string &name, const std::string &datasourceId) |
| TEDATAACCESSEXPORT std::string | te::da::GetDataSetCategoryName (int category) |
| TEDATAACCESSEXPORT void | te::da::GetDataSetNames (std::vector< std::string > &datasetNames, const std::string &datasourceId) |
| TEDATAACCESSEXPORT DataSetType * | te::da::GetDataSetType (const std::string &name, const std::string &datasourceId) |
| TEDATAACCESSEXPORT DataSourcePtr | te::da::GetDataSource (const std::string &datasourceId, const bool opened=true) |
| Search for a data source with the informed id in the DataSourceManager. More... | |
| TEDATAACCESSEXPORT void | te::da::GetEmptyOIDSet (const DataSetType *type, ObjectIdSet *&set) |
| Returns an empty ObjectIdSet, with the definitions of fields that compose it. More... | |
| TEDATAACCESSEXPORT te::gm::Envelope * | te::da::GetExtent (const std::string &datasetName, const std::string &propertyName, const std::string &datasourceId) |
| TEDATAACCESSEXPORT te::gm::GeometryProperty * | te::da::GetFirstGeomProperty (const DataSetType *dt) |
| TEDATAACCESSEXPORT std::size_t | te::da::GetFirstPropertyPos (const te::da::DataSet *dataset, int datatype) |
| TEDATAACCESSEXPORT te::rst::RasterProperty * | te::da::GetFirstRasterProperty (const DataSetType *dt) |
| TEDATAACCESSEXPORT te::dt::Property * | te::da::GetFirstSpatialProperty (const DataSetType *dt) |
| TEDATAACCESSEXPORT std::size_t | te::da::GetFirstSpatialPropertyPos (const te::da::DataSet *dataset) |
| It returns the first dataset spatial property or NULL if none is found. More... | |
| TEDATAACCESSEXPORT void | te::da::GetOIDPropertyNames (const DataSetType *type, std::vector< std::string > &pnames) |
| TEDATAACCESSEXPORT void | te::da::GetOIDPropertyPos (const DataSetType *type, std::vector< std::size_t > &ppos) |
| TEDATAACCESSEXPORT std::vector < int > | te::da::GetPropertyDataTypes (const te::da::DataSet *dataset) |
| TEDATAACCESSEXPORT int | te::da::GetPropertyIndex (te::da::DataSet *dataSet, const std::string propName) |
| TEDATAACCESSEXPORT void | te::da::GetPropertyInfo (const DataSetType *const dt, std::vector< std::string > &pnames, std::vector< int > &ptypes) |
| TEDATAACCESSEXPORT void | te::da::GetPropertyInfo (const DataSet *const dataset, std::vector< std::string > &pnames, std::vector< int > &ptypes) |
| TEDATAACCESSEXPORT std::size_t | te::da::GetPropertyPos (const DataSet *dataset, const std::string &name) |
| TEDATAACCESSEXPORT std::size_t | te::da::GetPropertyPos (const DataSetType *dt, const std::string &name) |
| TEDATAACCESSEXPORT std::string | te::da::GetSQLValueNames (const DataSetType *dt) |
| TEDATAACCESSEXPORT std::string | te::da::GetSQLValueNames (const DataSet *dataset) |
| TEDATAACCESSEXPORT bool | te::da::HasDataSet (const std::string &datasourceId) |
| TEDATAACCESSEXPORT void | te::da::LoadFull (te::da::DataSetType *dataset, const std::string &datasourceId) |
| TEDATAACCESSEXPORT void | te::da::LoadProperties (te::da::DataSetType *dataset, const std::string &datasourceId) |
Utility functions for the data access module.
Definition in file Utils.h.