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 ©InputColumns, 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::Geometry * | GetGeometryUnion (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 ©InputColumns, const std::string &outDataSetName, te::da::DataSource *outDataSource) |
| te::gm::GeometryProperty * | SetOutputGeometryType (const te::gm::GeometryProperty *firstGeom, const te::gm::GeometryProperty *secondGeom) |
| void | SplitGeometryCollection (te::gm::GeometryCollection *geomIn, te::gm::GeometryCollection *gcOut) |
Namespace for Vector Processing module of TerraLib.
Define grouping functions type.
| enum te::vp::MemoryUse |
| 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.
| inDataset | The name of the dataset to be used in aggregation operation. It must exists in the input datasource. |
| inDatasource | Pointer to the datasource that contains the input dataset. Do not pass null. |
| groupingProperties | Selected properties based on selected layer. |
| statisticalSummary | Map of selected functions based on input dataset properties. |
| outDataset | The name for the resulting datasource. It should not exists in the output datasource. |
| outDatasource | Pointer to the datasource to persist the resulting dataset. Do not pass null. |
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.
| inDatasetName | The name of the dataset to be used in aggregation operation. It must exists in the input datasource. |
| inDatasource | Pointer to the datasource that contains the input dataset. Do not pass null. |
| bufferPolygonRule | The buffer rule for all geometries (enum RuleForBuffer) |
| bufferBoundariesRule | The buffer boundaries rule for all geometries (enum BoundariesBetweenBuffers) |
| copyInputColumns | If boudaries between geometries was not dissolved, the user has the option to Copy de columns from the InputLayer. |
| levels | The number of levels. |
| outDatasetName | The name for the resulting datasource. It should not exists in the output datasource. |
| outDatasource | Pointer to the datasource to persist the resulting dataset. Do not pass null. |
| fixedDistance | The buffer distance for each geometry with the fixed value. |
| fromAttDistance | The buffer distance for each geometry is related with a value from one property. |
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().
| te::gm::GeomType te::vp::GeomOpResultType | ( | te::gm::GeomType | firstGeom, |
| te::gm::GeomType | secondGeom | ||
| ) |
Definition at line 134 of file Utils.cpp.
References te::gm::LineStringType, te::gm::MultiLineStringType, te::gm::MultiPointType, te::gm::MultiPolygonType, and te::gm::PolygonType.
Referenced by Aggregation(), CreateDataSetType(), and SetOutputDatasetQuery().
| te::gm::GeomType te::vp::GeomOpResultType | ( | te::gm::GeomType | firstGeom | ) |
Definition at line 161 of file Utils.cpp.
References te::gm::LineStringType, te::gm::MultiLineStringType, te::gm::MultiPointType, te::gm::MultiPolygonType, te::gm::PointType, and te::gm::PolygonType.
| 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;.
| text | Text that the filter is based. |
| layers | List of layer to filter. |
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.
| items | Vector of itens that represents a group. |
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 | ||
| ) |
Definition at line 111 of file Intersection.cpp.
References te::da::DataSource::add(), te::da::CreateAdapter(), te::da::DataSource::createDataSet(), te::da::DataSource::getCapabilities(), te::da::DataSource::getId(), te::da::DataSourceCapabilities::getQueryCapabilities(), te::da::DataSetTypeConverter::getResult(), IntersectionMemory(), IntersectionQuery(), te::da::DataSet::moveBeforeFirst(), and te::da::QueryCapabilities::supportsSpatialSQLDialect().
Referenced by te::vp::IntersectionDialog::onOkPushButtonClicked().
| 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().