#include <IntersectionOp.h>
Public Member Functions | |
| te::da::DataSetType * | getOutputDsType () |
| IntersectionOp () | |
| virtual bool | paramsAreValid () |
| virtual bool | run ()=0 |
| 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) |
| virtual | ~IntersectionOp () |
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 |
Definition at line 55 of file IntersectionOp.h.
| te::vp::IntersectionOp::IntersectionOp | ( | ) |
Definition at line 40 of file IntersectionOp.cpp.
|
inlinevirtual |
Definition at line 61 of file IntersectionOp.h.
| te::da::DataSetType * te::vp::IntersectionOp::getOutputDsType | ( | ) |
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, m_attributeVec, m_firstDsType, m_outDsetName, m_secondDsType, p, te::dt::SimpleProperty::setAutoNumber(), setGeomResultType(), te::dt::Property::setName(), te::da::DataSetType::setPrimaryKey(), and te::gm::GeometryProperty::setSRID().
Referenced by te::vp::IntersectionMemory::pairwiseIntersection(), and te::vp::IntersectionQuery::run().
|
protected |
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 te::vp::IntersectionMemory::run().
|
protected |
Definition at line 219 of file IntersectionOp.cpp.
References te::dt::Property::getName(), m_attributeVec, and p.
|
virtual |
Definition at line 131 of file IntersectionOp.cpp.
References m_firstConverter, m_outDsetName, m_outDsrc, and m_secondConverter.
Referenced by IntersectionOGRToOGR(), IntersectionOGRToPGIS(), IntersectionPGISToOGR(), IntersectionPGISToPGIS(), and te::vp::IntersectionDialog::onOkPushButtonClicked().
|
pure virtual |
Implemented in te::vp::IntersectionMemory, and te::vp::IntersectionQuery.
Referenced by IntersectionOGRToOGR(), IntersectionOGRToPGIS(), IntersectionPGISToOGR(), IntersectionPGISToPGIS(), and te::vp::IntersectionDialog::onOkPushButtonClicked().
|
protected |
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 getOutputDsType().
| void te::vp::IntersectionOp::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 |
||
| ) |
Definition at line 48 of file IntersectionOp.cpp.
References m_firstConverter, m_firstOidSet, m_inFirstDsetName, m_inFirstDsrc, m_inSecondDsetName, m_inSecondDsrc, m_secondConverter, and m_secondOidSet.
Referenced by IntersectionOGRToOGR(), IntersectionOGRToPGIS(), IntersectionPGISToOGR(), IntersectionPGISToPGIS(), and te::vp::IntersectionDialog::onOkPushButtonClicked().
| void te::vp::IntersectionOp::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 |
||
| ) |
Definition at line 68 of file IntersectionOp.cpp.
References m_firstConverter, m_firstDs, m_firstDsType, m_firstOidSet, m_inFirstDsetName, m_inFirstDsrc, m_inSecondDsetName, m_inSecondDsrc, m_secondConverter, m_secondDs, m_secondDsType, and m_secondOidSet.
| void te::vp::IntersectionOp::setIsFirstQuery | ( | ) |
Definition at line 209 of file IntersectionOp.cpp.
References m_isFistQuery.
Referenced by te::vp::IntersectionDialog::onOkPushButtonClicked().
| void te::vp::IntersectionOp::setIsSecondQuery | ( | ) |
Definition at line 214 of file IntersectionOp.cpp.
References m_isSecondQuery.
Referenced by te::vp::IntersectionDialog::onOkPushButtonClicked().
| void te::vp::IntersectionOp::setOutput | ( | te::da::DataSourcePtr | outDsrc, |
| std::string | dsname | ||
| ) |
Definition at line 102 of file IntersectionOp.cpp.
References m_outDsetName, and m_outDsrc.
Referenced by IntersectionOGRToOGR(), IntersectionOGRToPGIS(), IntersectionPGISToOGR(), IntersectionPGISToPGIS(), and te::vp::IntersectionDialog::onOkPushButtonClicked().
| void te::vp::IntersectionOp::setParams | ( | const std::vector< std::pair< int, std::string > > & | attributeVec | ) |
Definition at line 97 of file IntersectionOp.cpp.
References m_attributeVec.
Referenced by te::vp::IntersectionDialog::onOkPushButtonClicked().
|
protected |
Definition at line 126 of file IntersectionOp.h.
Referenced by getOutputDsType(), isSelectedProperty(), and setParams().
|
protected |
Definition at line 111 of file IntersectionOp.h.
Referenced by paramsAreValid(), te::vp::IntersectionQuery::run(), te::vp::IntersectionMemory::run(), and setInput().
|
protected |
Definition at line 119 of file IntersectionOp.h.
Referenced by te::vp::IntersectionMemory::run(), and setInput().
|
protected |
Definition at line 118 of file IntersectionOp.h.
Referenced by getOutputDsType(), and setInput().
|
protected |
Definition at line 115 of file IntersectionOp.h.
Referenced by te::vp::IntersectionQuery::run(), te::vp::IntersectionMemory::run(), and setInput().
|
protected |
Definition at line 110 of file IntersectionOp.h.
Referenced by te::vp::IntersectionQuery::run(), te::vp::IntersectionMemory::run(), and setInput().
|
protected |
Definition at line 109 of file IntersectionOp.h.
Referenced by te::vp::IntersectionQuery::run(), te::vp::IntersectionMemory::run(), and setInput().
|
protected |
Definition at line 113 of file IntersectionOp.h.
Referenced by te::vp::IntersectionQuery::run(), te::vp::IntersectionMemory::run(), and setInput().
|
protected |
Definition at line 112 of file IntersectionOp.h.
Referenced by te::vp::IntersectionQuery::run(), te::vp::IntersectionMemory::run(), and setInput().
|
protected |
Definition at line 123 of file IntersectionOp.h.
Referenced by te::vp::IntersectionMemory::run(), and setIsFirstQuery().
|
protected |
Definition at line 124 of file IntersectionOp.h.
Referenced by te::vp::IntersectionMemory::run(), and setIsSecondQuery().
|
protected |
Definition at line 129 of file IntersectionOp.h.
Referenced by getOutputDsType(), paramsAreValid(), te::vp::IntersectionMemory::run(), and setOutput().
|
protected |
Definition at line 128 of file IntersectionOp.h.
Referenced by paramsAreValid(), te::vp::IntersectionQuery::run(), te::vp::IntersectionMemory::run(), and setOutput().
|
protected |
Definition at line 114 of file IntersectionOp.h.
Referenced by paramsAreValid(), te::vp::IntersectionQuery::run(), te::vp::IntersectionMemory::run(), and setInput().
|
protected |
Definition at line 121 of file IntersectionOp.h.
Referenced by te::vp::IntersectionMemory::run(), and setInput().
|
protected |
Definition at line 120 of file IntersectionOp.h.
Referenced by getOutputDsType(), and setInput().
|
protected |
Definition at line 116 of file IntersectionOp.h.
Referenced by te::vp::IntersectionQuery::run(), te::vp::IntersectionMemory::run(), and setInput().