All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
te::vp Namespace Reference

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

Classes

class  AggregationDialog
 
class  BasicGeographicOperationDialog
 
class  BufferDialog
 
class  Globals
 An static class with global definitions. More...
 
class  IntersectionDialog
 A dialog used to execute vector intersection. More...
 
class  LayerItem
 
class  LayerTreeModel
 
class  LegendGroupItem
 
class  Module
 This singleton defines the TerraLib Qt Widgets module entry. More...
 
class  PolygonToLineDialog
 
class  PropertyGroupItem
 
class  PropertyItem
 
class  SummarizationDialog
 
class  TransformationDialog
 

Enumerations

enum  BoundariesBetweenBuffers { DISSOLVE, NOT_DISSOLVE }
 Define possible states for memory use. 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 }
 

Functions

TEVPEXPORT bool Aggregation (const std::string &inDataset, te::da::DataSource *inDatasource, const std::vector< te::dt::Property * > &groupingProperties, const std::map< te::dt::Property *, std::vector< te::stat::StatisticalSummary > > &statisticalSummary, const std::string &outDataset, te::da::DataSource *outDatasource)
 Executes the Aggregation Geographical Operation and persists the result as a dataset in a given output datasource. More...
 
TEVPEXPORT bool Buffer (const std::string &inDataset, te::da::DataSource *inDatasource, const int &bufferPolygonRule, const int &bufferBoundariesRule, const bool &copyInputColumns, const int &levels, const std::string &outDataset, te::da::DataSource *outDatasource, const double &fixedDistance=0, const std::string &fromAttDistance="")
 Executes the Buffer Geographical Operation and persists the result as a dataset in a given output datasource. More...
 
te::gm::GeomType GeomOpResultType (te::gm::GeomType firstGeom, te::gm::GeomType secondGeom)
 
te::gm::GeomType GeomOpResultType (te::gm::GeomType firstGeom)
 
std::list
< te::map::AbstractLayerPtr
GetFilteredLayers (std::string text, std::list< te::map::AbstractLayerPtr > layers)
 Get a list of AbstractLayer filtered by the name;. More...
 
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...
 
std::string GetSimpleTableName (std::string fullName)
 
TEVPEXPORT bool Intersection (const std::string &inFirstDataSetName, te::da::DataSource *inFirstDataSource, const std::string &inSecondDataSetName, te::da::DataSource *inSecondDataSource, const bool &copyInputColumns, const std::string &outDataSetName, te::da::DataSource *outDataSource)
 
te::gm::GeometryPropertySetOutputGeometryType (const te::gm::GeometryProperty *firstGeom, const te::gm::GeometryProperty *secondGeom)
 
void SplitGeometryCollection (te::gm::GeometryCollection *geomIn, te::gm::GeometryCollection *gcOut)
 

Detailed Description

Namespace for Vector Processing module of TerraLib.

Enumeration Type Documentation

Define possible states for memory use.

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.

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.

Function Documentation

bool te::vp::Aggregation ( const std::string &  inDataset,
te::da::DataSource inDatasource,
const std::vector< te::dt::Property * > &  groupingProperties,
const std::map< te::dt::Property *, std::vector< te::stat::StatisticalSummary > > &  statisticalSummary,
const std::string &  outDataset,
te::da::DataSource outDatasource 
)

Executes the Aggregation Geographical Operation and persists the result as a dataset in a given output datasource.

Parameters
inDatasetThe name of the dataset to be used in aggregation operation. It must exists in the input datasource.
inDatasourcePointer to the datasource that contains the input dataset. Do not pass null.
groupingPropertiesSelected properties based on selected layer.
statisticalSummaryMap of selected functions based on input dataset properties.
outDatasetThe name for the resulting datasource. It should not exists in the output datasource.
outDatasourcePointer to the datasource to persist the resulting dataset. Do not pass null.
Returns
True if the it succeeds and false otherwise.

This algorithm assums that the input dataset exists in the datasource. It generates a new dataset in the ouput datasource, do it can not exists a dataset with the same name prior to the calling of this algorithm.

Definition at line 102 of file Aggregation.cpp.

References te::da::PrimaryKey::add(), te::da::DataSource::add(), te::da::DataSource::addPrimaryKey(), AggregationMemory(), AggregationQuery(), BuildOutputDataSetType(), te::da::CreateAdapter(), te::da::DataSource::createDataSet(), te::dt::GEOMETRY_TYPE, GeomOpResultType(), te::da::DataSource::getCapabilities(), te::da::DataSource::getDataSetType(), te::da::DataSourceCapabilities::getDataSetTypeCapabilities(), te::gm::GeometryProperty::getGeometryType(), te::da::DataSourceCapabilities::getQueryCapabilities(), te::da::DataSetTypeConverter::getResult(), te::gm::GeometryProperty::getSRID(), te::gm::GeometryProperty::setGeometryType(), te::gm::GeometryProperty::setSRID(), te::da::DataSourceCapabilities::supportsPreparedQueryAPI(), te::da::DataSetTypeCapabilities::supportsPrimaryKey(), and te::da::QueryCapabilities::supportsSpatialSQLDialect().

Referenced by te::vp::AggregationDialog::onOkPushButtonClicked().

bool te::vp::Buffer ( const std::string &  inDataset,
te::da::DataSource inDatasource,
const int &  bufferPolygonRule,
const int &  bufferBoundariesRule,
const bool &  copyInputColumns,
const int &  levels,
const std::string &  outDataset,
te::da::DataSource outDatasource,
const double &  fixedDistance = 0,
const std::string &  fromAttDistance = "" 
)

Executes the Buffer Geographical Operation and persists the result as a dataset in a given output datasource.

Parameters
inDatasetNameThe name of the dataset to be used in aggregation operation. It must exists in the input datasource.
inDatasourcePointer to the datasource that contains the input dataset. Do not pass null.
bufferPolygonRuleThe buffer rule for all geometries (enum RuleForBuffer)
bufferBoundariesRuleThe buffer boundaries rule for all geometries (enum BoundariesBetweenBuffers)
copyInputColumnsIf boudaries between geometries was not dissolved, the user has the option to Copy de columns from the InputLayer.
levelsThe number of levels.
outDatasetNameThe name for the resulting datasource. It should not exists in the output datasource.
outDatasourcePointer to the datasource to persist the resulting dataset. Do not pass null.
fixedDistanceThe buffer distance for each geometry with the fixed value.
fromAttDistanceThe buffer distance for each geometry is related with a value from one property.
Returns
True if the it succeeds and false otherwise.

This algorithm assums that the input dataset exists in the datasource. It generates a new dataset in the ouput datasource, do it can not exists a dataset with the same name prior to the calling of this algorithm.

Definition at line 134 of file Buffer.cpp.

References te::da::DataSource::add(), BufferMemory(), BufferQuery(), te::da::CreateAdapter(), te::da::DataSource::createDataSet(), te::da::DataSource::getCapabilities(), GetDataSetType(), te::da::DataSourceCapabilities::getQueryCapabilities(), te::da::DataSetTypeConverter::getResult(), te::gm::MultiPolygonType, te::da::DataSourceCapabilities::supportsPreparedQueryAPI(), and te::da::QueryCapabilities::supportsSpatialSQLDialect().

Referenced by te::vp::BufferDialog::onOkPushButtonClicked().

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.

Definition at line 46 of file Utils.cpp.

Referenced by te::vp::BufferDialog::onFilterLineEditTextChanged(), and te::vp::AggregationDialog::onFilterLineEditTextChanged().

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.

Definition at line 50 of file Utils.cpp.

References te::gm::GeometryCollection::add(), te::gm::GeometryCollectionType, te::gm::GeometryCollection::getGeometries(), te::gm::Geometry::getGeomTypeId(), te::gm::Geometry::getSRID(), te::gm::GeometryCollection::setGeometryN(), SplitGeometryCollection(), and te::gm::Geometry::Union().

Referenced by AggregationMemory().

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

Definition at line 124 of file Utils.cpp.

Referenced by CreateDataSetType(), IntersectionQuery(), and PairwiseIntersection().

bool te::vp::Intersection ( const std::string &  inFirstDataSetName,
te::da::DataSource inFirstDataSource,
const std::string &  inSecondDataSetName,
te::da::DataSource inSecondDataSource,
const bool &  copyInputColumns,
const std::string &  outDataSetName,
te::da::DataSource outDataSource 
)
te::gm::GeometryProperty* te::vp::SetOutputGeometryType ( const te::gm::GeometryProperty firstGeom,
const te::gm::GeometryProperty secondGeom 
)
void te::vp::SplitGeometryCollection ( te::gm::GeometryCollection geomIn,
te::gm::GeometryCollection gcOut 
)

Definition at line 111 of file Utils.cpp.

References te::gm::GeometryCollection::add().

Referenced by GetGeometryUnion().