#include <Intersection.h>
Public Member Functions | |
| bool | executeMemory (te::vp::AlgorithmParams *mainParams) |
| bool | executeQuery (te::vp::AlgorithmParams *mainParams) |
| Intersection () | |
| virtual | ~Intersection () |
Protected Member Functions | |
| std::vector< te::dt::Property * > | getFirstSelectedProperties (const te::da::DataSetType *dataSetType, const std::map< std::string, te::dt::AbstractData * > &specificParams) |
| te::gm::GeomType | getGeomResultType (const te::gm::GeomType &firstGeom, const te::gm::GeomType &secondGeom, const bool &isCollection) |
| te::da::DataSetType * | getOutputDataSetType (te::vp::AlgorithmParams *mainParams) |
| std::vector< te::dt::Property * > | getSecondSelectedProperties (const te::da::DataSetType *dataSetType, const std::map< std::string, te::dt::AbstractData * > &specificParams) |
| std::vector< std::pair< std::string, std::string > > | getSelectedProperties (const std::map< std::string, te::dt::AbstractData * > &specificParams) |
| bool | isCollection (const std::map< std::string, te::dt::AbstractData * > &specificParams) |
| te::da::DataSet * | updateGeomType (te::da::DataSetType *dsType, te::da::DataSet *ds) |
Private Attributes | |
| std::map< std::string, std::string > | m_firstAttrNameMap |
| std::map< std::string, std::string > | m_secondAttrNameMap |
Definition at line 56 of file Intersection.h.
|
default |
|
inlinevirtual |
Definition at line 62 of file Intersection.h.
References ds.
|
virtual |
Implements te::vp::Algorithm.
Definition at line 88 of file src/terralib/vp/Intersection.cpp.
References te::dt::AbstractData::clone(), te::da::GetFirstGeomProperty(), te::da::GetFirstSpatialPropertyPos(), te::da::DataSet::getGeometry(), te::vp::AlgorithmParams::getInputParams(), te::dt::Property::getName(), getOutputDataSetType(), te::vp::AlgorithmParams::getOutputDataSource(), te::vp::GetRtree(), te::vp::AlgorithmParams::getSpecificParams(), te::da::DataSet::getValue(), te::gm::Geometry::intersection(), isCollection(), te::gm::Geometry::isEmpty(), te::gm::IsMultiType(), te::da::DataSet::isNull(), te::gm::Geometry::isValid(), m_firstAttrNameMap, te::vp::InputParams::m_inputDataSet, te::vp::InputParams::m_inputDataSetType, m_secondAttrNameMap, te::vp::MEMORY, te::da::DataSet::move(), te::da::DataSet::moveBeforeFirst(), te::da::DataSet::moveNext(), te::gm::Multi2Single(), te::vp::PrepareAdd(), te::vp::Save(), te::vp::SetGeomAsMulti(), TE_CORE_LOG_DEBUG, TE_TR, and te::vp::ValidateAlgorithmParams().
|
virtual |
Implements te::vp::Algorithm.
Definition at line 278 of file src/terralib/vp/Intersection.cpp.
References te::da::PrimaryKey::add(), te::da::FromItem::getAlias(), te::da::GetFirstGeomProperty(), getGeomResultType(), te::vp::AlgorithmParams::getInputParams(), te::common::Singleton< DataSourceInfoManager >::getInstance(), te::dt::Property::getName(), te::vp::AlgorithmParams::getOutputDataSetName(), getOutputDataSetType(), te::vp::AlgorithmParams::getOutputDataSource(), te::da::INNER_JOIN, insert(), te::dt::INT32_TYPE, isCollection(), te::dt::SimpleProperty::setAutoNumber(), and updateGeomType().
|
protected |
Definition at line 204 of file src/terralib/vp/Intersection.cpp.
References te::dt::CompositeProperty::getProperty(), and getSelectedProperties().
Referenced by getOutputDataSetType().
|
protected |
Definition at line 635 of file src/terralib/vp/Intersection.cpp.
References te::gm::GetMultiType(), te::gm::GetSimpleType(), te::gm::IsMultiType(), te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::gm::MultiLineStringMType, te::gm::MultiLineStringType, te::gm::MultiLineStringZMType, te::gm::MultiLineStringZType, te::gm::MultiPointMType, te::gm::MultiPointType, te::gm::MultiPointZMType, te::gm::MultiPointZType, te::gm::MultiPolygonType, te::gm::PointKdType, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, and te::gm::PointZType.
Referenced by executeQuery(), and getOutputDataSetType().
|
protected |
Definition at line 548 of file src/terralib/vp/Intersection.cpp.
References te::da::PrimaryKey::add(), te::da::DataSetType::add(), te::dt::Property::clone(), te::vp::GetDistinctName(), te::da::GetFirstGeomProperty(), getFirstSelectedProperties(), te::gm::GeometryProperty::getGeometryType(), getGeomResultType(), te::vp::AlgorithmParams::getInputParams(), te::dt::Property::getName(), te::vp::AlgorithmParams::getOutputDataSetName(), te::vp::AlgorithmParams::getOutputDataSource(), getSecondSelectedProperties(), te::vp::AlgorithmParams::getSpecificParams(), te::gm::GeometryProperty::getSRID(), te::dt::INT32_TYPE, isCollection(), m_firstAttrNameMap, te::vp::InputParams::m_inputDataSetType, m_secondAttrNameMap, te::dt::SimpleProperty::setAutoNumber(), te::gm::GeometryProperty::setGeometryType(), te::dt::Property::setName(), te::da::DataSetType::setPrimaryKey(), and te::gm::GeometryProperty::setSRID().
Referenced by executeMemory(), and executeQuery().
|
protected |
Definition at line 221 of file src/terralib/vp/Intersection.cpp.
References te::dt::CompositeProperty::getProperty(), and getSelectedProperties().
Referenced by getOutputDataSetType().
|
protected |
Definition at line 238 of file src/terralib/vp/Intersection.cpp.
References te::vp::ComplexData< T >::getValue().
Referenced by getFirstSelectedProperties(), and getSecondSelectedProperties().
|
protected |
Definition at line 257 of file src/terralib/vp/Intersection.cpp.
References te::dt::SimpleData< T, typeCode >::getValue().
Referenced by executeMemory(), executeQuery(), and getOutputDataSetType().
|
protected |
Definition at line 468 of file src/terralib/vp/Intersection.cpp.
References te::mem::DataSet::add(), DataSet(), te::dt::GEOMETRY_TYPE, te::da::DataSet::getGeometry(), te::dt::CompositeProperty::getProperties(), te::da::DataSet::getValue(), te::da::DataSet::isNull(), te::gm::LineStringType, te::da::DataSet::moveNext(), te::gm::MultiLineStringType, te::gm::MultiPointType, te::gm::MultiPolygonType, te::gm::PointType, te::gm::PolygonType, te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt32(), and te::mem::DataSetItem::setValue().
Referenced by executeQuery().
|
private |
Definition at line 87 of file Intersection.h.
Referenced by executeMemory(), and getOutputDataSetType().
|
private |
Definition at line 89 of file Intersection.h.
Referenced by executeMemory(), and getOutputDataSetType().