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;
A class that models the description of a dataset.
A dataset is the unit of information manipulated by the data access module of TerraLib.
An abstract class for data providers like a DBMS, Web Services or a regular file.
It is a collection of other geometric objects.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver.
A class that represents an R-tree.
This abstract class represents handler to help reading and writing data from/to a dataSource by divid...
Abstract class used to define an operation.
An alias for a set of Features.
boost::shared_ptr< DataSource > DataSourcePtr
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
std::vector< te::gm::Geometry * > GeometryVector
std::vector< const te::gm::Geometry * > GeometryVectorConst
TEVPEXPORT te::da::DataSourcePtr CreateOGRDataSource(std::string repository)
TEVPEXPORT void DropTemporaryDataSource(te::da::DataSourcePtr dataSource)
TEVPEXPORT bool IsLineStringType(const te::gm::GeomType &geomType)
TEVPEXPORT void Save(te::da::DataSource *source, te::da::DataSet *result, te::da::DataSetType *outDsType, const bool &enableProgress=true)
TEVPEXPORT std::string GetDistinctName(const std::string &name, std::vector< std::string > names, std::size_t maxSize=0)
TEVPEXPORT te::vp::AbstractDataHandler * CreateDataHandler(const std::string &dataHandlerName)
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...
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)
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.
TEVPEXPORT bool IsPointType(const te::gm::GeomType &geomType)
TEVPEXPORT bool IsPolygonType(const te::gm::GeomType &geomType)
TEVPEXPORT te::vp::AbstractOperation * CreateOperation(const std::string &operationName)
TEVPEXPORT std::string GetSimpleTableName(std::string fullName)
TEVPEXPORT void ValidateAlgorithmParams(AlgorithmParams *mainParams, Strategy st)
TEVPEXPORT te::gm::Geometry * SetGeomAsMulti(const te::gm::Geometry &geom)
TEVPEXPORT te::da::DataSourcePtr CreateTemporaryDataSource()
Creates a data source located in the temporary folder of the user filesystem.
TEVPEXPORT te::sam::rtree::Index< size_t, 8 > * GetRtree(te::da::DataSet *data)
TEVPEXPORT te::gm::GeometryVectorConst GetGeometriesFromFeatureSet(const te::vp::FeatureSet &featureSet)
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.
TEVPEXPORT void SplitGeometryCollection(te::gm::GeometryCollection *geomIn, te::gm::GeometryCollection *gcOut)
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).
Utility classes, structures and definitions for Vector Processing.