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 } |
Namespace for Vector Processing module of TerraLib.
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 src/terralib/vp/Enums.h.
Definition at line 100 of file src/terralib/vp/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 src/terralib/vp/Enums.h.
Define grouping functions type.
Definition at line 40 of file src/terralib/vp/Enums.h.
| enum te::vp::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 src/terralib/vp/Enums.h.
Definition at line 77 of file src/terralib/vp/Enums.h.
| enum te::vp::Strategy |
| Enumerator | |
|---|---|
| MEMORY | |
| QUERY | |
Definition at line 57 of file src/terralib/vp/Utils.h.
| te::da::DataSourcePtr te::vp::CreateOGRDataSource | ( | std::string | repository | ) |
Definition at line 281 of file src/terralib/vp/Utils.cpp.
References te::common::Singleton< DataSourceInfoManager >::getInstance(), and te::common::Singleton< DataSourceManager >::getInstance().
Referenced by te::vp::DissolveDialog::onOkPushButtonClicked().
| std::vector< te::gm::Geometry * > te::vp::ExtractGeometry | ( | te::gm::Geometry & | inputGeometry, |
| const te::gm::GeomType & | outputGeomType | ||
| ) |
Definition at line 313 of file src/terralib/vp/Dissolve.cpp.
References te::dt::AbstractData::clone(), te::gm::Geometry::getGeomTypeId(), te::gm::IsMultiType(), te::gm::Multi2Single(), and SetGeomAsMulti().
Referenced by te::vp::Dissolve::threadUnion().
| te::vp::DataStruct te::vp::GetDataStructFromLayer | ( | te::map::AbstractLayerPtr | layer, |
| bool | onlySelectedObjects, | ||
| int | srid = 0 |
||
| ) |
Definition at line 251 of file src/terralib/vp/qt/Utils.cpp.
References te::da::AssociateDataSetTypeConverterSRID(), te::da::CreateAdapter(), te::da::GetFirstGeomProperty(), te::common::Singleton< DataSourceManager >::getInstance(), te::gm::GeometryProperty::getSRID(), te::vp::DataStruct::m_dataSet, and te::vp::DataStruct::m_dataSetType.
Referenced by te::vp::DifferenceDialog::onOkPushButtonClicked(), te::vp::IdentityDialog::onOkPushButtonClicked(), and te::vp::DissolveDialog::onOkPushButtonClicked().
| std::vector< std::string > te::vp::GetDissolveProps | ( | const std::map< std::string, te::dt::AbstractData * > & | specificParams | ) |
Definition at line 97 of file src/terralib/vp/Dissolve.cpp.
References te::vp::ComplexData< T >::getValue().
Referenced by te::vp::Dissolve::executeMemory(), te::vp::Dissolve::executeQuery(), GetOutputDataSetType(), and PopulateItems().
| std::string te::vp::GetDistinctName | ( | const std::string & | name, |
| std::vector< std::string > | names, | ||
| std::size_t | maxSize = 0 |
||
| ) |
Definition at line 385 of file src/terralib/vp/Utils.cpp.
Referenced by te::vp::Union::getOutputDataSetType(), and te::vp::Intersection::getOutputDataSetType().
| 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.
| dataSet | DataSet in the current position to get values. |
Definition at line 478 of file src/terralib/vp/Utils.cpp.
References te::mem::DataSetItem::getNumProperties(), te::da::DataSet::getPropertyName(), te::da::DataSet::getValue(), and te::mem::DataSetItem::setValue().
Referenced by te::vp::MakeGeometryValid::makeValidMemory().
| 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 74 of file src/terralib/vp/qt/Utils.cpp.
| 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 62 of file src/terralib/vp/Utils.cpp.
References te::gm::GeometryCollection::add(), gc, 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 te::vp::GeometricOpMemory::SetAggregObj().
| te::gm::Geometry * te::vp::GetGeometryUnion | ( | const std::vector< te::mem::DataSetItem * > & | items, |
| size_t | geomIdx | ||
| ) |
Definition at line 133 of file src/terralib/vp/Utils.cpp.
References te::gm::GeometryCollection::add(), te::gm::GeometryCollectionType, and te::gm::Geometry::Union().
| te::da::DataSetType * te::vp::GetOutputDataSetType | ( | te::vp::AlgorithmParams * | mainParams | ) |
Definition at line 187 of file src/terralib/vp/Dissolve.cpp.
References te::da::PrimaryKey::add(), te::da::DataSetType::add(), te::dt::Property::clone(), te::dt::DOUBLE_TYPE, te::da::GetDataSetType(), GetDissolveProps(), te::da::GetFirstGeomProperty(), te::gm::GeometryProperty::getGeometryType(), te::vp::AlgorithmParams::getInputParams(), te::vp::AlgorithmParams::getOutputDataSetName(), te::vp::AlgorithmParams::getOutputDataSource(), te::vp::AlgorithmParams::getOutputSRID(), te::dt::CompositeProperty::getProperty(), te::vp::AlgorithmParams::getSpecificParams(), te::stat::GetStatSummaryShortName(), GetSummaryProps(), te::dt::INT32_TYPE, IsCollection(), te::stat::MODE, te::dt::SimpleProperty::setAutoNumber(), te::gm::GeometryProperty::setGeometryType(), SetGeomResultType(), te::dt::Property::setParent(), te::da::DataSetType::setPrimaryKey(), te::gm::GeometryProperty::setSRID(), te::dt::STRING_TYPE, and te::dt::VAR_STRING.
Referenced by te::vp::Dissolve::executeMemory(), and te::vp::Dissolve::executeQuery().
| te::sam::rtree::Index< size_t, 8 > * te::vp::GetRtree | ( | te::da::DataSet * | data | ) |
Definition at line 330 of file src/terralib/vp/Utils.cpp.
References te::da::GetFirstSpatialPropertyPos(), te::da::DataSet::getGeometry(), te::sam::rtree::Index< DATATYPE, MAXNODES, MINNODES >::insert(), te::da::DataSet::isNull(), te::da::DataSet::moveBeforeFirst(), and te::da::DataSet::moveNext().
Referenced by te::vp::Union::executeMemory(), and te::vp::Intersection::executeMemory().
| te::da::Select * te::vp::GetSelectQueryFromLayer | ( | te::map::AbstractLayerPtr | layer, |
| bool | onlySelectedObjects, | ||
| int | srid = 0 |
||
| ) |
Definition at line 89 of file src/terralib/vp/qt/Utils.cpp.
References te::da::Expression::clone(), te::dt::GEOMETRY_TYPE, te::map::AbstractLayer::getDataSetName(), te::da::Where::getExp(), te::da::ObjectIdSet::getExpression(), te::da::GetFirstGeomProperty(), te::map::QueryLayer::getQuery(), te::map::QueryLayer::getSchema(), te::map::DataSetLayer::getSchema(), te::gm::GeometryProperty::getSRID(), te::da::Select::getWhere(), te::da::Select::setFields(), te::da::Select::setFrom(), and te::da::Select::setWhere().
Referenced by te::vp::DifferenceDialog::onOkPushButtonClicked(), and te::vp::DissolveDialog::onOkPushButtonClicked().
| std::string te::vp::GetSimpleTableName | ( | std::string | fullName | ) |
Definition at line 182 of file src/terralib/vp/Utils.cpp.
| std::map< te::dt::Property *, std::vector< te::stat::StatisticalSummary > > te::vp::GetSummaryProps | ( | const std::map< std::string, te::dt::AbstractData * > & | specificParams | ) |
Definition at line 128 of file src/terralib/vp/Dissolve.cpp.
References te::vp::ComplexData< T >::getValue().
Referenced by te::vp::Dissolve::executeQuery(), GetOutputDataSetType(), and PopulateItems().
| bool te::vp::IsCollection | ( | const std::map< std::string, te::dt::AbstractData * > & | specificParams | ) |
Definition at line 162 of file src/terralib/vp/Dissolve.cpp.
References te::dt::SimpleData< T, typeCode >::getValue().
Referenced by te::vp::Dissolve::executeQuery(), GetOutputDataSetType(), and PopulateItems().
| bool te::vp::IsLineStringType | ( | const te::gm::GeomType & | geomType | ) |
Definition at line 446 of file src/terralib/vp/Utils.cpp.
References te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::gm::MultiLineStringMType, te::gm::MultiLineStringType, te::gm::MultiLineStringZMType, and te::gm::MultiLineStringZType.
Referenced by te::vp::IntersectionOp::setGeomResultType().
| bool te::vp::IsPointType | ( | const te::gm::GeomType & | geomType | ) |
Definition at line 429 of file src/terralib/vp/Utils.cpp.
References te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPointZMType, te::gm::MultiPointZType, te::gm::PointKdType, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, and te::gm::PointZType.
Referenced by te::vp::IntersectionOp::setGeomResultType().
| bool te::vp::IsPolygonType | ( | const te::gm::GeomType & | geomType | ) |
Definition at line 462 of file src/terralib/vp/Utils.cpp.
References te::gm::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::MultiPolygonZMType, te::gm::MultiPolygonZType, te::gm::PolygonMType, te::gm::PolygonType, te::gm::PolygonZMType, and te::gm::PolygonZType.
Definition at line 302 of file src/terralib/vp/qt/Utils.cpp.
References te::common::Singleton< SpatialReferenceSystemManager >::getInstance(), and te::common::UOM_Degree.
Referenced by te::vp::GeometricOpDialog::onOkPushButtonClicked(), and te::vp::BufferDialog::onOkPushButtonClicked().
| 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 | ||
| ) |
Definition at line 368 of file src/terralib/vp/Dissolve.cpp.
References te::vp::Dissolve::Dissolve(), te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, GetDissolveProps(), te::dt::Property::getName(), te::stat::GetNumericStatisticalSummary(), te::dt::CompositeProperty::getProperty(), te::dt::CompositeProperty::getPropertyPosition(), te::stat::GetStringStatisticalSummary(), GetSummaryProps(), te::dt::Property::getType(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, IsCollection(), te::stat::NumericStatisticalSummary::m_amplitude, te::stat::StringStatisticalSummary::m_count, te::stat::NumericStatisticalSummary::m_count, te::stat::NumericStatisticalSummary::m_kurtosis, te::stat::StringStatisticalSummary::m_maxVal, te::stat::NumericStatisticalSummary::m_maxVal, te::stat::NumericStatisticalSummary::m_mean, te::stat::NumericStatisticalSummary::m_median, te::stat::StringStatisticalSummary::m_minVal, te::stat::NumericStatisticalSummary::m_minVal, te::stat::NumericStatisticalSummary::m_mode, te::stat::NumericStatisticalSummary::m_skewness, te::stat::NumericStatisticalSummary::m_stdDeviation, te::stat::NumericStatisticalSummary::m_sum, te::stat::StringStatisticalSummary::m_validCount, te::stat::NumericStatisticalSummary::m_validCount, te::stat::NumericStatisticalSummary::m_varCoeff, te::stat::NumericStatisticalSummary::m_variance, p, setValue(), te::dt::CompositeProperty::size(), and te::dt::STRING_TYPE.
Referenced by te::vp::Dissolve::threadUnion().
| std::unique_ptr< te::da::DataSet > te::vp::PrepareAdd | ( | te::da::DataSet * | ds, |
| te::da::DataSetType * | dt | ||
| ) |
Definition at line 192 of file src/terralib/vp/Utils.cpp.
References te::dt::Property::getName(), te::da::DataSetType::getPrimaryKey(), te::da::PrimaryKey::getProperties(), te::da::HideColumns(), and te::dt::SimpleProperty::isAutoNumber().
Referenced by te::vp::Union::executeMemory(), te::vp::Identity::executeMemory(), te::vp::Intersection::executeMemory(), te::vp::Difference::executeMemory(), and te::vp::Dissolve::threadSave().
| void te::vp::Save | ( | te::da::DataSource * | source, |
| te::da::DataSet * | result, | ||
| te::da::DataSetType * | outDsType, | ||
| const bool & | enableProgress = true |
||
| ) |
Definition at line 221 of file src/terralib/vp/Utils.cpp.
References te::da::DataSource::getCapabilities(), te::dt::Property::getName(), te::da::DataSource::getTransactor(), te::da::DataSet::moveBeforeFirst(), and te::common::Tokenize().
Referenced by te::vp::Union::executeMemory(), te::vp::Identity::executeMemory(), te::vp::Intersection::executeMemory(), te::vp::Difference::executeMemory(), te::vp::PolygonToLineQuery::run(), te::vp::GeometricOpMemory::run(), te::vp::LineToPolygonQuery::run(), te::vp::GeometricOpQuery::run(), te::vp::PolygonToLineMemory::run(), te::vp::LineToPolygonMemory::run(), te::vp::IntersectionQuery::run(), te::vp::IntersectionMemory::run(), te::vp::BufferQuery::run(), te::vp::BufferMemory::run(), te::vp::MultipartToSinglepart::runAll(), te::vp::MultipartToSinglepart::runSelected(), te::mnt::SaveIso(), te::mnt::Tin::SaveTin(), and te::vp::Dissolve::threadSave().
| te::gm::Geometry * te::vp::SetGeomAsMulti | ( | const te::gm::Geometry & | geom | ) |
Definition at line 353 of file src/terralib/vp/Utils.cpp.
References te::gm::GeometryCollection::add(), te::dt::AbstractData::clone(), te::gm::Geometry::getGeomTypeId(), te::gm::Geometry::getSRID(), te::gm::LineStringType, te::gm::MultiLineStringType, te::gm::MultiPointType, te::gm::MultiPolygonType, te::gm::PointType, and te::gm::PolygonType.
Referenced by te::vp::Union::executeMemory(), te::vp::Intersection::executeMemory(), and ExtractGeometry().
| te::gm::GeomType te::vp::SetGeomResultType | ( | const te::gm::GeomType & | geomType, |
| const bool & | isCollection | ||
| ) |
Definition at line 295 of file src/terralib/vp/Dissolve.cpp.
References te::gm::GetMultiType(), te::gm::GetSimpleType(), and te::gm::IsMultiType().
Referenced by GetOutputDataSetType().
| void te::vp::SplitGeometryCollection | ( | te::gm::GeometryCollection * | geomIn, |
| te::gm::GeometryCollection * | gcOut | ||
| ) |
Definition at line 169 of file src/terralib/vp/Utils.cpp.
References te::gm::GeometryCollection::add(), and gc.
Referenced by te::vp::BufferMemory::dissolveMemory(), and GetGeometryUnion().
| void te::vp::ValidateAlgorithmParams | ( | AlgorithmParams * | mainParams, |
| Strategy | st | ||
| ) |
Definition at line 305 of file src/terralib/vp/Utils.cpp.
References te::vp::AlgorithmParams::getInputParams(), te::vp::AlgorithmParams::getOutputDataSource(), MEMORY, and TE_TR.
Referenced by te::vp::Union::executeMemory(), te::vp::Identity::executeMemory(), te::vp::Intersection::executeMemory(), te::vp::Difference::executeMemory(), te::vp::Merge::executeMemory(), and te::vp::Difference::executeQuery().