te::vp Namespace Reference

Namespace for Vector Processing module of TerraLib. More...

Classes

class  Algorithm
 Define input/output parameters for an operation. More...
 
class  AlgorithmParams
 
class  BufferDialog
 
class  BufferMemory
 A concrete class to compute the buffer operation. More...
 
class  BufferOp
 An abstract class to compute the buffer memory and buffer query operation. More...
 
class  BufferQuery
 A concrete class to compute the buffer operation. More...
 
class  CheckGeomValidityDialog
 A dialog used to check geometries validity. More...
 
class  ComplexData
 A template for complex data types. More...
 
struct  DataStruct
 Get a list of AbstractLayer filtered by the name;. More...
 
class  Difference
 
class  DifferenceDialog
 A dialog used to execute vector difference. More...
 
class  Dissolve
 
class  DissolveDialog
 
class  GeometricOp
 
class  GeometricOpDialog
 This class is GUI used to define the wizard for the VP geometric operation. More...
 
class  GeometricOpMemory
 
class  GeometricOpQuery
 
class  GroupThreadManager
 
class  Identity
 
class  IdentityDialog
 A dialog used to execute vector identity. More...
 
struct  InputParams
 A structure to hold the input parameters of vector processing. More...
 
class  Intersection
 
class  IntersectionDialog
 A dialog used to execute vector intersection. More...
 
class  IntersectionMemory
 
class  IntersectionOp
 
class  IntersectionQuery
 
class  LineToPolygonDialog
 
class  LineToPolygonMemory
 
class  LineToPolygonOp
 
class  LineToPolygonQuery
 
class  MakeGeometryValid
 A static class with methods to make geometry valid. More...
 
class  Merge
 
class  MergeDialog
 
class  MultipartToSinglepart
 
class  MultipartToSinglepartDialog
 
class  PolygonToLineDialog
 
class  PolygonToLineMemory
 
class  PolygonToLineOp
 
class  PolygonToLineQuery
 
class  Union
 
class  UnionDialog
 A dialog used to execute vector union. More...
 

Enumerations

enum  BoundariesBetweenBuffers { DISSOLVE, NOT_DISSOLVE }
 Define the boundaries between buffers. More...
 
enum  GeometricOperation {
  CONVEX_HULL, CENTROID, MBR, AREA,
  LINE, PERIMETER
}
 
enum  GeometricOpObjStrategy { ALL_OBJ, AGGREG_OBJ, AGGREG_BY_ATTRIBUTE }
 Defines the strategy used for the processing of the input geometries. More...
 
enum  GroupingFunctionsType {
  MIN_VALUE, MAX_VALUE, MEAN, SUM,
  COUNT, VALID_COUNT, STANDARD_DEVIATION, KERNEL,
  VARIANCE, SKEWNESS, KURTOSIS, AMPLITUDE,
  MEDIAN, VAR_COEFF, MODE
}
 Define grouping functions type. More...
 
enum  MemoryUse { WHOLE_MEM, PARTIALLY_MEM, LOW_MEM }
 Define possible states for memory use. More...
 
enum  RuleForBuffer { INSIDE_OUTSIDE, ONLY_OUTSIDE, ONLY_INSIDE }
 
enum  Strategy { MEMORY, QUERY }
 

Functions

TEVPEXPORT te::da::DataSourcePtr CreateOGRDataSource (std::string repository)
 
std::vector< te::gm::Geometry * > ExtractGeometry (te::gm::Geometry &inputGeometry, const te::gm::GeomType &outputGeomType)
 
DataStruct GetDataStructFromLayer (te::map::AbstractLayerPtr layer, bool onlySelectedObjects, int srid=0)
 
std::vector< std::string > GetDissolveProps (const std::map< std::string, te::dt::AbstractData *> &specificParams)
 
TEVPEXPORT std::string GetDistinctName (const std::string &name, std::vector< std::string > names, std::size_t maxSize=0)
 
TEVPEXPORT te::mem::DataSetItemGetFilledItemMemory (te::da::DataSet *dataSet)
 It returns a memory item with all properties filled with values from the current position dataset. More...
 
std::list< te::map::AbstractLayerPtrGetFilteredLayers (std::string text, std::list< te::map::AbstractLayerPtr > layers)
 Get a list of AbstractLayer filtered by the name;. More...
 
TEVPEXPORT te::gm::GeometryGetGeometryUnion (const std::vector< te::mem::DataSetItem *> &items, size_t geomIdx, te::gm::GeomType outGeoType)
 It returns the union of a geometry vector. More...
 
TEVPEXPORT te::gm::GeometryGetGeometryUnion (const std::vector< te::mem::DataSetItem *> &items, size_t geomIdx)
 
te::da::DataSetTypeGetOutputDataSetType (te::vp::AlgorithmParams *mainParams)
 
TEVPEXPORT te::sam::rtree::Index< size_t, 8 > * GetRtree (te::da::DataSet *data)
 
te::da::SelectGetSelectQueryFromLayer (te::map::AbstractLayerPtr layer, bool onlySelectedObjects, int srid=0)
 
TEVPEXPORT std::string GetSimpleTableName (std::string fullName)
 
std::map< te::dt::Property *, std::vector< te::stat::StatisticalSummary > > GetSummaryProps (const std::map< std::string, te::dt::AbstractData *> &specificParams)
 
bool IsCollection (const std::map< std::string, te::dt::AbstractData *> &specificParams)
 
TEVPEXPORT bool IsLineStringType (const te::gm::GeomType &geomType)
 
TEVPEXPORT bool IsPointType (const te::gm::GeomType &geomType)
 
TEVPEXPORT bool IsPolygonType (const te::gm::GeomType &geomType)
 
bool IsProjectionLatLong (const int &srid)
 
void PopulateItems (const te::da::DataSetType *inputDataSetType, const std::vector< te::mem::DataSetItem *> inputItens, const std::map< std::string, te::dt::AbstractData *> specificParams, std::vector< te::mem::DataSetItem *> &outputItemVec)
 
TEVPEXPORT std::unique_ptr< te::da::DataSetPrepareAdd (te::da::DataSet *ds, te::da::DataSetType *dt)
 
TEVPEXPORT void Save (te::da::DataSource *source, te::da::DataSet *result, te::da::DataSetType *outDsType, const bool &enableProgress=true)
 
TEVPEXPORT te::gm::GeometrySetGeomAsMulti (const te::gm::Geometry &geom)
 
te::gm::GeomType SetGeomResultType (const te::gm::GeomType &geomType, const bool &isCollection)
 
TEVPEXPORT void SplitGeometryCollection (te::gm::GeometryCollection *geomIn, te::gm::GeometryCollection *gcOut)
 
TEVPEXPORT void ValidateAlgorithmParams (AlgorithmParams *mainParams, Strategy st)
 

Detailed Description

Namespace for Vector Processing module of TerraLib.

Enumeration Type Documentation

◆ BoundariesBetweenBuffers

Define the boundaries between buffers.

Enumerator
DISSOLVE 

The boundaries between buffers will be dissolved.

NOT_DISSOLVE 

The boundaries between buffers will not be dissolved.

Definition at line 89 of file Enums.h.

◆ GeometricOperation

Enumerator
CONVEX_HULL 

The geographic operation Convex Hull.

CENTROID 

The geographic operation Centroid.

MBR 

The geographic operation Minimum Bounding Rectangle.

AREA 

The geographic operation Area.

LINE 

The geographic operation Line.

PERIMETER 

The geographic operation Perimeter.

Definition at line 100 of file Enums.h.

◆ GeometricOpObjStrategy

Defines the strategy used for the processing of the input geometries.

Enumerator
ALL_OBJ 

All objects individually.

AGGREG_OBJ 

Aggregate all objects.

AGGREG_BY_ATTRIBUTE 

Aggregate objects by attribute.

Definition at line 115 of file Enums.h.

◆ GroupingFunctionsType

Define grouping functions type.

Enumerator
MIN_VALUE 

Minimum value.

MAX_VALUE 

Maximum value.

MEAN 

Mean.

SUM 

Sum of values.

COUNT 

Total number of values.

VALID_COUNT 

Total not null values.

STANDARD_DEVIATION 

Standard deviation.

KERNEL 

Kernel.

VARIANCE 

Variance.

SKEWNESS 

Skewness.

KURTOSIS 

Kurtosis.

AMPLITUDE 

Amplitude.

MEDIAN 

Median.

VAR_COEFF 

Coefficient variation.

MODE 

Mode.

Definition at line 40 of file Enums.h.

◆ MemoryUse

Define possible states for memory use.

Enumerator
WHOLE_MEM 

Whole memory use.

PARTIALLY_MEM 

Partially memory use.

LOW_MEM 

Low memory use.

Definition at line 65 of file Enums.h.

◆ RuleForBuffer

Enumerator
INSIDE_OUTSIDE 

The buffer is generated Inside and outside of the polygons.

ONLY_OUTSIDE 

The buffer is generated only outside of the polygons.

ONLY_INSIDE 

The buffer is generated only inside of the polygons.

Definition at line 77 of file Enums.h.

◆ Strategy

Enumerator
MEMORY 
QUERY 

Definition at line 57 of file Utils.h.

Function Documentation

◆ CreateOGRDataSource()

TEVPEXPORT te::da::DataSourcePtr te::vp::CreateOGRDataSource ( std::string  repository)

◆ ExtractGeometry()

std::vector<te::gm::Geometry*> te::vp::ExtractGeometry ( te::gm::Geometry inputGeometry,
const te::gm::GeomType outputGeomType 
)

◆ GetDataStructFromLayer()

DataStruct te::vp::GetDataStructFromLayer ( te::map::AbstractLayerPtr  layer,
bool  onlySelectedObjects,
int  srid = 0 
)

◆ GetDissolveProps()

std::vector<std::string> te::vp::GetDissolveProps ( const std::map< std::string, te::dt::AbstractData *> &  specificParams)

◆ GetDistinctName()

TEVPEXPORT std::string te::vp::GetDistinctName ( const std::string &  name,
std::vector< std::string >  names,
std::size_t  maxSize = 0 
)

◆ GetFilledItemMemory()

TEVPEXPORT te::mem::DataSetItem* te::vp::GetFilledItemMemory ( te::da::DataSet dataSet)

It returns a memory item with all properties filled with values from the current position dataset.

Parameters
dataSetDataSet in the current position to get values.
Returns
A memory item with attributes filled with dataSet values.

◆ GetFilteredLayers()

std::list<te::map::AbstractLayerPtr> te::vp::GetFilteredLayers ( std::string  text,
std::list< te::map::AbstractLayerPtr layers 
)

Get a list of AbstractLayer filtered by the name;.

Parameters
textText that the filter is based.
layersList of layer to filter.
Returns
A list of layer filtered by the name.

◆ GetGeometryUnion() [1/2]

TEVPEXPORT te::gm::Geometry* te::vp::GetGeometryUnion ( const std::vector< te::mem::DataSetItem *> &  items,
size_t  geomIdx,
te::gm::GeomType  outGeoType 
)

It returns the union of a geometry vector.

Parameters
itemsVector of itens that represents a group.
Returns
Union of the geometry.

◆ GetGeometryUnion() [2/2]

TEVPEXPORT te::gm::Geometry* te::vp::GetGeometryUnion ( const std::vector< te::mem::DataSetItem *> &  items,
size_t  geomIdx 
)

◆ GetOutputDataSetType()

te::da::DataSetType* te::vp::GetOutputDataSetType ( te::vp::AlgorithmParams mainParams)

◆ GetRtree()

TEVPEXPORT te::sam::rtree::Index<size_t, 8>* te::vp::GetRtree ( te::da::DataSet data)

◆ GetSelectQueryFromLayer()

te::da::Select* te::vp::GetSelectQueryFromLayer ( te::map::AbstractLayerPtr  layer,
bool  onlySelectedObjects,
int  srid = 0 
)

◆ GetSimpleTableName()

TEVPEXPORT std::string te::vp::GetSimpleTableName ( std::string  fullName)

◆ GetSummaryProps()

std::map<te::dt::Property*, std::vector<te::stat::StatisticalSummary> > te::vp::GetSummaryProps ( const std::map< std::string, te::dt::AbstractData *> &  specificParams)

◆ IsCollection()

bool te::vp::IsCollection ( const std::map< std::string, te::dt::AbstractData *> &  specificParams)

◆ IsLineStringType()

TEVPEXPORT bool te::vp::IsLineStringType ( const te::gm::GeomType geomType)

◆ IsPointType()

TEVPEXPORT bool te::vp::IsPointType ( const te::gm::GeomType geomType)

◆ IsPolygonType()

TEVPEXPORT bool te::vp::IsPolygonType ( const te::gm::GeomType geomType)

◆ IsProjectionLatLong()

bool te::vp::IsProjectionLatLong ( const int &  srid)

◆ PopulateItems()

void te::vp::PopulateItems ( const te::da::DataSetType inputDataSetType,
const std::vector< te::mem::DataSetItem *>  inputItens,
const std::map< std::string, te::dt::AbstractData *>  specificParams,
std::vector< te::mem::DataSetItem *> &  outputItemVec 
)

◆ PrepareAdd()

TEVPEXPORT std::unique_ptr<te::da::DataSet> te::vp::PrepareAdd ( te::da::DataSet ds,
te::da::DataSetType dt 
)

◆ Save()

TEVPEXPORT void te::vp::Save ( te::da::DataSource source,
te::da::DataSet result,
te::da::DataSetType outDsType,
const bool &  enableProgress = true 
)

◆ SetGeomAsMulti()

TEVPEXPORT te::gm::Geometry* te::vp::SetGeomAsMulti ( const te::gm::Geometry geom)

◆ SetGeomResultType()

te::gm::GeomType te::vp::SetGeomResultType ( const te::gm::GeomType geomType,
const bool &  isCollection 
)

◆ SplitGeometryCollection()

TEVPEXPORT void te::vp::SplitGeometryCollection ( te::gm::GeometryCollection geomIn,
te::gm::GeometryCollection gcOut 
)

◆ ValidateAlgorithmParams()

TEVPEXPORT void te::vp::ValidateAlgorithmParams ( AlgorithmParams mainParams,
Strategy  st 
)