26 #ifndef __TERRALIB_VP_INTERNAL_UTILS_H 27 #define __TERRALIB_VP_INTERNAL_UTILS_H 30 #include "../dataaccess/datasource/DataSource.h" 32 #include "../geometry/CommonDataStructures.h" 33 #include "../geometry/Enums.h" 35 #include "../sam/rtree.h" 55 class GeometryCollection;
65 class AlgorithmParams;
66 class AbstractDataHandler;
67 class AbstractOperation;
103 TEVPEXPORT std::string
GetDistinctName(
const std::string& name, std::vector<std::string> names, std::size_t maxSize = 0);
153 #endif // __TERRALIB_VP_INTERNAL_UTILS_H std::vector< te::gm::Geometry * > GeometryVector
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
TEVPEXPORT te::da::DataSourcePtr CreateTemporaryDataSource()
Creates a data source located in the temporary folder of the user filesystem.
TEVPEXPORT te::da::DataSourcePtr CreateOGRDataSource(std::string repository)
TEVPEXPORT te::gm::GeometryVector ExtractGeometriesFromFeatureSet(const te::vp::FeatureSet &featureSet)
Gets the GeometryVector from the given FeatureSet. The caller must NOT free the memory after using th...
boost::shared_ptr< DataSource > DataSourcePtr
A class that represents an R-tree.
A class that models the description of a dataset.
TEVPEXPORT void ValidateAlgorithmParams(AlgorithmParams *mainParams, Strategy st)
TEVPEXPORT te::vp::AbstractOperation * CreateOperation(const std::string &operationName)
TEVPEXPORT void DropTemporaryDataSource(te::da::DataSourcePtr dataSource)
TEVPEXPORT void Save(te::da::DataSource *source, te::da::DataSet *result, te::da::DataSetType *outDsType, const bool &enableProgress=true)
This abstract class represents handler to help reading and writing data from/to a dataSource by divid...
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
TEVPEXPORT void SplitGeometryCollection(te::gm::GeometryCollection *geomIn, te::gm::GeometryCollection *gcOut)
TEVPEXPORT bool IsLineStringType(const te::gm::GeomType &geomType)
TEVPEXPORT te::vp::AbstractDataHandler * CreateDataHandler(const std::string &dataHandlerName)
An alias for a set of Features.
TEVPEXPORT te::mem::DataSetItem * GetFilledItemMemory(te::da::DataSet *dataSet)
It returns a memory item with all properties filled with values from the current position dataset...
Abstract class used to define an operation.
TEVPEXPORT std::string GetDistinctName(const std::string &name, std::vector< std::string > names, std::size_t maxSize=0)
std::vector< const te::gm::Geometry * > GeometryVectorConst
TEVPEXPORT te::gm::Geometry * SetGeomAsMulti(const te::gm::Geometry &geom)
TEVPEXPORT std::string GetSimpleTableName(std::string fullName)
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
TEVPEXPORT te::gm::GeometryVectorConst GetGeometriesFromFeatureSet(const te::vp::FeatureSet &featureSet)
TEVPEXPORT bool IsPolygonType(const te::gm::GeomType &geomType)
An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver...
A dataset is the unit of information manipulated by the data access module of TerraLib.
TEVPEXPORT bool IsPointType(const te::gm::GeomType &geomType)
TEVPEXPORT std::unique_ptr< te::da::DataSet > CreateDataSetFromFeatureSet(const std::string &dataSetName, const te::da::DataSetType *dataSetType, const te::vp::FeatureSet &featureSet)
Creates a memory dataSet based on the given featureSet.
Configuration flags for the Terrralib Vector Processing module.
TEVPEXPORT te::sam::rtree::Index< size_t, 8 > * GetRtree(te::da::DataSet *data)
It is a collection of other geometric objects.
TEVPEXPORT te::gm::Geometry * GetGeometryUnion(const std::vector< te::mem::DataSetItem *> &items, size_t geomIdx, te::gm::GeomType outGeoType)
It returns the union of a geometry vector.
TEVPEXPORT std::unique_ptr< te::da::DataSet > PrepareAdd(te::da::DataSet *ds, te::da::DataSetType *dt)