#include <IntersectionMemory.h>
Classes | |
| struct | IntersectionMember |
Public Member Functions | |
| te::da::DataSetType * | getOutputDsType () |
| IntersectionMemory () | |
| virtual bool | paramsAreValid () |
| bool | run () throw (te::common::Exception) |
| void | setInput (te::da::DataSourcePtr inFirstDsrc, std::string inFirstDsetName, std::unique_ptr< te::da::DataSetTypeConverter > firstConverter, te::da::DataSourcePtr inSecondDsrc, std::string inSecondDsetName, std::unique_ptr< te::da::DataSetTypeConverter > secondConverter, const te::da::ObjectIdSet *firstOidSet=0, const te::da::ObjectIdSet *secondOidSet=0) |
| void | setInput (te::da::DataSourcePtr inFirstDsrc, std::string inFirstDsetName, std::unique_ptr< te::da::DataSetType > firstDsType, std::unique_ptr< te::da::DataSet > firstDs, std::unique_ptr< te::da::DataSetTypeConverter > firstConverter, te::da::DataSourcePtr inSecondDsrc, std::string inSecondDsetName, std::unique_ptr< te::da::DataSetType > secondDsType, std::unique_ptr< te::da::DataSet > secondDs, std::unique_ptr< te::da::DataSetTypeConverter > secondConverter, const te::da::ObjectIdSet *firstOidSet=0, const te::da::ObjectIdSet *secondOidSet=0) |
| void | setIsFirstQuery () |
| void | setIsSecondQuery () |
| void | setOutput (te::da::DataSourcePtr outDsrc, std::string dsname) |
| void | setParams (const std::vector< std::pair< int, std::string > > &attributeVec) |
| ~IntersectionMemory () | |
Protected Member Functions | |
| std::vector< te::dt::Property * > | getTabularProps (te::da::DataSetType *dsType) |
| bool | isSelectedProperty (const int &id, const dt::Property &prop) |
| te::gm::GeomType | setGeomResultType (te::gm::GeomType firstGeom, te::gm::GeomType secondGeom) |
Protected Attributes | |
| std::vector< std::pair< int, std::string > > | m_attributeVec |
| std::unique_ptr< te::da::DataSetTypeConverter > | m_firstConverter |
| std::unique_ptr< te::da::DataSet > | m_firstDs |
| std::unique_ptr< te::da::DataSetType > | m_firstDsType |
| const te::da::ObjectIdSet * | m_firstOidSet |
| std::string | m_inFirstDsetName |
| te::da::DataSourcePtr | m_inFirstDsrc |
| std::string | m_inSecondDsetName |
| te::da::DataSourcePtr | m_inSecondDsrc |
| bool | m_isFistQuery |
| bool | m_isSecondQuery |
| std::string | m_outDsetName |
| te::da::DataSourcePtr | m_outDsrc |
| std::unique_ptr< te::da::DataSetTypeConverter > | m_secondConverter |
| std::unique_ptr< te::da::DataSet > | m_secondDs |
| std::unique_ptr< te::da::DataSetType > | m_secondDsType |
| const te::da::ObjectIdSet * | m_secondOidSet |
Private Types | |
| typedef te::sam::rtree::Index< size_t, 8 > * | DataSetRTree |
Private Member Functions | |
| std::pair< te::da::DataSetType *, te::da::DataSet * > | pairwiseIntersection (std::string newName, IntersectionMember firstMember, IntersectionMember secondMember) |
Definition at line 57 of file IntersectionMemory.h.
|
private |
Definition at line 77 of file IntersectionMemory.h.
|
default |
|
default |
|
inherited |
Definition at line 167 of file IntersectionOp.cpp.
References te::da::PrimaryKey::add(), te::da::DataSetType::add(), te::dt::Property::clone(), te::da::GetFirstGeomProperty(), te::dt::Property::getName(), te::gm::GeometryProperty::getSRID(), te::dt::INT32_TYPE, te::vp::IntersectionOp::m_attributeVec, te::vp::IntersectionOp::m_firstDsType, te::vp::IntersectionOp::m_outDsetName, te::vp::IntersectionOp::m_secondDsType, p, te::dt::SimpleProperty::setAutoNumber(), te::vp::IntersectionOp::setGeomResultType(), te::dt::Property::setName(), te::da::DataSetType::setPrimaryKey(), and te::gm::GeometryProperty::setSRID().
Referenced by pairwiseIntersection(), and te::vp::IntersectionQuery::run().
|
protectedinherited |
Definition at line 151 of file IntersectionOp.cpp.
References te::dt::GEOMETRY_TYPE, te::dt::CompositeProperty::getProperties(), te::dt::CompositeProperty::getProperty(), and te::dt::Property::getType().
Referenced by te::vp::IntersectionQuery::run(), and run().
|
protectedinherited |
Definition at line 219 of file IntersectionOp.cpp.
References te::dt::Property::getName(), te::vp::IntersectionOp::m_attributeVec, and p.
|
private |
Definition at line 124 of file IntersectionMemory.cpp.
References te::mem::DataSet::add(), te::gm::GeometryCollection::add(), DataSet(), te::vp::IntersectionMemory::IntersectionMember::ds, te::vp::IntersectionMemory::IntersectionMember::dt, te::dt::CompositeProperty::findFirstPropertyOfType(), te::dt::GEOMETRY_TYPE, te::da::GetFirstGeomProperty(), te::da::GetFirstSpatialPropertyPos(), te::da::DataSet::getGeometry(), te::gm::GeometryProperty::getGeometryType(), te::vp::IntersectionOp::getOutputDsType(), te::dt::CompositeProperty::getPropertyPosition(), te::gm::GeometryProperty::getSRID(), te::da::DataSet::getValue(), te::sam::rtree::Index< DATATYPE, MAXNODES, MINNODES >::insert(), te::common::TaskProgress::isActive(), te::mem::DataSetItem::isNull(), te::da::DataSet::isNull(), te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::da::DataSet::move(), te::da::DataSet::moveBeforeFirst(), te::mem::DataSet::moveBeforeFirst(), te::da::DataSet::moveNext(), te::mem::DataSet::moveNext(), 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::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::MultiPolygonZMType, te::gm::MultiPolygonZType, te::gm::PointKdType, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, te::gm::PointZType, te::gm::PolygonMType, te::gm::PolygonType, te::gm::PolygonZMType, te::gm::PolygonZType, te::vp::IntersectionMemory::IntersectionMember::props, te::common::TaskProgress::pulse(), te::sam::rtree::Index< DATATYPE, MAXNODES, MINNODES >::search(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt32(), te::common::TaskProgress::setTotalSteps(), te::mem::DataSetItem::setValue(), te::dt::CompositeProperty::size(), te::da::DataSet::size(), TE_CORE_LOG_DEBUG, TE_LOG_INFO, TE_TR, and te::common::TaskProgress::useTimer().
Referenced by run().
|
virtualinherited |
Definition at line 131 of file IntersectionOp.cpp.
References te::vp::IntersectionOp::m_firstConverter, te::vp::IntersectionOp::m_outDsetName, te::vp::IntersectionOp::m_outDsrc, and te::vp::IntersectionOp::m_secondConverter.
Referenced by IntersectionOGRToOGR(), IntersectionOGRToPGIS(), IntersectionPGISToOGR(), IntersectionPGISToPGIS(), and te::vp::IntersectionDialog::onOkPushButtonClicked().
|
virtual | |||||||||||||
Implements te::vp::IntersectionOp.
Definition at line 72 of file IntersectionMemory.cpp.
References te::da::CreateAdapter(), te::vp::IntersectionMemory::IntersectionMember::ds, te::vp::IntersectionMemory::IntersectionMember::dt, te::vp::IntersectionOp::getTabularProps(), te::vp::IntersectionOp::m_firstConverter, te::vp::IntersectionOp::m_firstDs, te::vp::IntersectionOp::m_firstOidSet, te::vp::IntersectionOp::m_inFirstDsetName, te::vp::IntersectionOp::m_inFirstDsrc, te::vp::IntersectionOp::m_inSecondDsetName, te::vp::IntersectionOp::m_inSecondDsrc, te::vp::IntersectionOp::m_isFistQuery, te::vp::IntersectionOp::m_isSecondQuery, te::vp::IntersectionOp::m_outDsetName, te::vp::IntersectionOp::m_outDsrc, te::vp::IntersectionOp::m_secondConverter, te::vp::IntersectionOp::m_secondDs, te::vp::IntersectionOp::m_secondOidSet, pairwiseIntersection(), te::vp::IntersectionMemory::IntersectionMember::props, te::vp::Save(), and TE_TR.
|
protectedinherited |
Definition at line 108 of file IntersectionOp.cpp.
References te::vp::IsLineStringType(), te::vp::IsPointType(), te::gm::MultiLineStringType, te::gm::MultiPointType, and te::gm::MultiPolygonType.
Referenced by te::vp::IntersectionOp::getOutputDsType().
|
inherited |
Definition at line 48 of file IntersectionOp.cpp.
References te::vp::IntersectionOp::m_firstConverter, te::vp::IntersectionOp::m_firstOidSet, te::vp::IntersectionOp::m_inFirstDsetName, te::vp::IntersectionOp::m_inFirstDsrc, te::vp::IntersectionOp::m_inSecondDsetName, te::vp::IntersectionOp::m_inSecondDsrc, te::vp::IntersectionOp::m_secondConverter, and te::vp::IntersectionOp::m_secondOidSet.
Referenced by IntersectionOGRToOGR(), IntersectionOGRToPGIS(), IntersectionPGISToOGR(), IntersectionPGISToPGIS(), and te::vp::IntersectionDialog::onOkPushButtonClicked().
|
inherited |
Definition at line 68 of file IntersectionOp.cpp.
References te::vp::IntersectionOp::m_firstConverter, te::vp::IntersectionOp::m_firstDs, te::vp::IntersectionOp::m_firstDsType, te::vp::IntersectionOp::m_firstOidSet, te::vp::IntersectionOp::m_inFirstDsetName, te::vp::IntersectionOp::m_inFirstDsrc, te::vp::IntersectionOp::m_inSecondDsetName, te::vp::IntersectionOp::m_inSecondDsrc, te::vp::IntersectionOp::m_secondConverter, te::vp::IntersectionOp::m_secondDs, te::vp::IntersectionOp::m_secondDsType, and te::vp::IntersectionOp::m_secondOidSet.
|
inherited |
Definition at line 209 of file IntersectionOp.cpp.
References te::vp::IntersectionOp::m_isFistQuery.
Referenced by te::vp::IntersectionDialog::onOkPushButtonClicked().
|
inherited |
Definition at line 214 of file IntersectionOp.cpp.
References te::vp::IntersectionOp::m_isSecondQuery.
Referenced by te::vp::IntersectionDialog::onOkPushButtonClicked().
|
inherited |
Definition at line 102 of file IntersectionOp.cpp.
References te::vp::IntersectionOp::m_outDsetName, and te::vp::IntersectionOp::m_outDsrc.
Referenced by IntersectionOGRToOGR(), IntersectionOGRToPGIS(), IntersectionPGISToOGR(), IntersectionPGISToPGIS(), and te::vp::IntersectionDialog::onOkPushButtonClicked().
|
inherited |
Definition at line 97 of file IntersectionOp.cpp.
References te::vp::IntersectionOp::m_attributeVec.
Referenced by te::vp::IntersectionDialog::onOkPushButtonClicked().
|
protectedinherited |
Definition at line 126 of file IntersectionOp.h.
Referenced by te::vp::IntersectionOp::getOutputDsType(), te::vp::IntersectionOp::isSelectedProperty(), and te::vp::IntersectionOp::setParams().
|
protectedinherited |
Definition at line 111 of file IntersectionOp.h.
Referenced by te::vp::IntersectionOp::paramsAreValid(), te::vp::IntersectionQuery::run(), run(), and te::vp::IntersectionOp::setInput().
|
protectedinherited |
Definition at line 119 of file IntersectionOp.h.
Referenced by run(), and te::vp::IntersectionOp::setInput().
|
protectedinherited |
Definition at line 118 of file IntersectionOp.h.
Referenced by te::vp::IntersectionOp::getOutputDsType(), and te::vp::IntersectionOp::setInput().
|
protectedinherited |
Definition at line 115 of file IntersectionOp.h.
Referenced by te::vp::IntersectionQuery::run(), run(), and te::vp::IntersectionOp::setInput().
|
protectedinherited |
Definition at line 110 of file IntersectionOp.h.
Referenced by te::vp::IntersectionQuery::run(), run(), and te::vp::IntersectionOp::setInput().
|
protectedinherited |
Definition at line 109 of file IntersectionOp.h.
Referenced by te::vp::IntersectionQuery::run(), run(), and te::vp::IntersectionOp::setInput().
|
protectedinherited |
Definition at line 113 of file IntersectionOp.h.
Referenced by te::vp::IntersectionQuery::run(), run(), and te::vp::IntersectionOp::setInput().
|
protectedinherited |
Definition at line 112 of file IntersectionOp.h.
Referenced by te::vp::IntersectionQuery::run(), run(), and te::vp::IntersectionOp::setInput().
|
protectedinherited |
Definition at line 123 of file IntersectionOp.h.
Referenced by run(), and te::vp::IntersectionOp::setIsFirstQuery().
|
protectedinherited |
Definition at line 124 of file IntersectionOp.h.
Referenced by run(), and te::vp::IntersectionOp::setIsSecondQuery().
|
protectedinherited |
Definition at line 129 of file IntersectionOp.h.
Referenced by te::vp::IntersectionOp::getOutputDsType(), te::vp::IntersectionOp::paramsAreValid(), run(), and te::vp::IntersectionOp::setOutput().
|
protectedinherited |
Definition at line 128 of file IntersectionOp.h.
Referenced by te::vp::IntersectionOp::paramsAreValid(), te::vp::IntersectionQuery::run(), run(), and te::vp::IntersectionOp::setOutput().
|
protectedinherited |
Definition at line 114 of file IntersectionOp.h.
Referenced by te::vp::IntersectionOp::paramsAreValid(), te::vp::IntersectionQuery::run(), run(), and te::vp::IntersectionOp::setInput().
|
protectedinherited |
Definition at line 121 of file IntersectionOp.h.
Referenced by run(), and te::vp::IntersectionOp::setInput().
|
protectedinherited |
Definition at line 120 of file IntersectionOp.h.
Referenced by te::vp::IntersectionOp::getOutputDsType(), and te::vp::IntersectionOp::setInput().
|
protectedinherited |
Definition at line 116 of file IntersectionOp.h.
Referenced by te::vp::IntersectionQuery::run(), run(), and te::vp::IntersectionOp::setInput().