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  GeometricOpMemory
 
class  GeometricOpOutputWizardPage
 This class is GUI used to define the basic geometric operator parameters for the VP operation. More...
 
class  GeometricOpQuery
 
class  GeometricOpWizard
 This class is GUI used to define the wizard for the VP geometric operation. More...
 
class  GeometricOpWizardPage
 
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  Merge
 
class  MergeDialog
 
class  MultipartToSinglepart
 
class  MultipartToSinglepartDialog
 
class  PolygonToLineDialog
 
class  PolygonToLineMemory
 
class  PolygonToLineOp
 
class  PolygonToLineQuery
 
class  SummarizationDialog
 
class  TransformationDialog
 
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, 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)
 
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 std::auto_ptr< te::gm::GeometryGetGeometryUnion (const std::vector< te::gm::Geometry * > &geomVec)
 
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)
 
TEVPEXPORT te::gm::GeomType GetMultiType (te::gm::GeomType geomType)
 
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)
 
TEVPEXPORT te::gm::GeomType GetSimpleType (te::gm::GeomType geomType)
 
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 IsMultiType (te::gm::GeomType geomType)
 
TEVPEXPORT bool IsPointType (const te::gm::GeomType &geomType)
 
TEVPEXPORT bool IsPolygonType (const te::gm::GeomType &geomType)
 
TEVPEXPORT bool MakeValidGeometry (const te::da::DataSourcePtr dataSource, const std::string dataSetName, std::string errorMessage)
 It tries to fix invalid geometry by SQL clause ST_MakeValid and updates the source data. More...
 
void PopulateItens (te::da::DataSetType *inputDataSetType, std::vector< te::mem::DataSetItem * > inputItens, std::map< std::string, te::dt::AbstractData * > specificParams, std::vector< te::mem::DataSetItem * > outputItemVec)
 
TEVPEXPORT std::auto_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)
 
TEVPEXPORT te::gm::GeometrySetGeomAsMulti (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)
 
te::gm::GeometryValidateGeometry (te::gm::Geometry *input, std::vector< std::string > &error)
 

Detailed Description

Namespace for Vector Processing module of TerraLib.

Enumeration Type Documentation

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.

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.

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.

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.

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.

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.

Enumerator
MEMORY 
QUERY 

Definition at line 57 of file Utils.h.

Function Documentation

TEVPEXPORT te::da::DataSourcePtr te::vp::CreateOGRDataSource ( std::string  repository)
std::vector<te::gm::Geometry*> te::vp::ExtractGeometry ( te::gm::Geometry inputGeometry,
te::gm::GeomType  outputGeomType 
)
DataStruct te::vp::GetDataStructFromLayer ( te::map::AbstractLayerPtr  layer,
bool  onlySelectedObjects,
int  srid = 0 
)
std::vector<std::string> te::vp::GetDissolveProps ( const std::map< std::string, te::dt::AbstractData * > &  specificParams)
TEVPEXPORT std::string te::vp::GetDistinctName ( const std::string &  name,
std::vector< std::string >  names,
std::size_t  maxSize = 0 
)
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.
TEVPEXPORT std::auto_ptr<te::gm::Geometry> te::vp::GetGeometryUnion ( const std::vector< te::gm::Geometry * > &  geomVec)
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.
TEVPEXPORT te::gm::Geometry* te::vp::GetGeometryUnion ( const std::vector< te::mem::DataSetItem * > &  items,
size_t  geomIdx 
)
TEVPEXPORT te::gm::GeomType te::vp::GetMultiType ( te::gm::GeomType  geomType)
te::da::DataSetType* te::vp::GetOutputDataSetType ( te::vp::AlgorithmParams mainParams)
TEVPEXPORT te::sam::rtree::Index<size_t, 8>* te::vp::GetRtree ( te::da::DataSet data)
te::da::Select* te::vp::GetSelectQueryFromLayer ( te::map::AbstractLayerPtr  layer,
bool  onlySelectedObjects,
int  srid = 0 
)
TEVPEXPORT std::string te::vp::GetSimpleTableName ( std::string  fullName)
TEVPEXPORT te::gm::GeomType te::vp::GetSimpleType ( te::gm::GeomType  geomType)
std::map<te::dt::Property*, std::vector<te::stat::StatisticalSummary> > te::vp::GetSummaryProps ( const std::map< std::string, te::dt::AbstractData * > &  specificParams)
bool te::vp::IsCollection ( const std::map< std::string, te::dt::AbstractData * > &  specificParams)
TEVPEXPORT bool te::vp::IsLineStringType ( const te::gm::GeomType geomType)
TEVPEXPORT bool te::vp::IsMultiType ( te::gm::GeomType  geomType)
TEVPEXPORT bool te::vp::IsPointType ( const te::gm::GeomType geomType)
TEVPEXPORT bool te::vp::IsPolygonType ( const te::gm::GeomType geomType)
TEVPEXPORT bool te::vp::MakeValidGeometry ( const te::da::DataSourcePtr  dataSource,
const std::string  dataSetName,
std::string  errorMessage 
)

It tries to fix invalid geometry by SQL clause ST_MakeValid and updates the source data.

Parameters
dataSourceThe data source information.
dataSetNameThe input data name.
errorMessageVariable to catch any error occurred during execution.
Returns
True, if the query was executed successfully and the geometries fixed was updated.
Note
The layer must be inserted in a database with spatial extent.
void te::vp::PopulateItens ( te::da::DataSetType inputDataSetType,
std::vector< te::mem::DataSetItem * >  inputItens,
std::map< std::string, te::dt::AbstractData * >  specificParams,
std::vector< te::mem::DataSetItem * >  outputItemVec 
)
TEVPEXPORT std::auto_ptr<te::da::DataSet> te::vp::PrepareAdd ( te::da::DataSet ds,
te::da::DataSetType dt 
)
TEVPEXPORT void te::vp::Save ( te::da::DataSource source,
te::da::DataSet result,
te::da::DataSetType outDsType 
)
TEVPEXPORT te::gm::Geometry* te::vp::SetGeomAsMulti ( te::gm::Geometry geom)
te::gm::GeomType te::vp::SetGeomResultType ( const te::gm::GeomType geomType,
const bool &  isCollection 
)
TEVPEXPORT void te::vp::SplitGeometryCollection ( te::gm::GeometryCollection geomIn,
te::gm::GeometryCollection gcOut 
)
TEVPEXPORT void te::vp::ValidateAlgorithmParams ( AlgorithmParams mainParams,
Strategy  st 
)
te::gm::Geometry* te::vp::ValidateGeometry ( te::gm::Geometry input,
std::vector< std::string > &  error 
)