#include <MultipartToSinglepart.h>
Public Member Functions | |
| MultipartToSinglepart () | |
| bool | run () |
| void | setInput (te::da::DataSourcePtr inDsrc, std::string inDsName, std::unique_ptr< te::da::DataSetType > inDsType, const te::da::ObjectIdSet *oidSet=0) |
| void | setOutput (te::da::DataSourcePtr outDsrc, std::string outDsName) |
| ~MultipartToSinglepart () | |
Protected Member Functions | |
| std::unique_ptr< te::da::DataSetType > | getOutDst (bool onlySelected=false) |
| bool | runAll () |
| bool | runSelected () |
| te::gm::Geometry * | single2multi (te::gm::Geometry *geom) |
Private Attributes | |
| std::string | m_inDsName |
| te::da::DataSourcePtr | m_inDsrc |
| std::unique_ptr< te::da::DataSetType > | m_inDsType |
| const te::da::ObjectIdSet * | m_oidSet |
| std::string | m_outDsName |
| te::da::DataSourcePtr | m_outDsrc |
Definition at line 56 of file MultipartToSinglepart.h.
| te::vp::MultipartToSinglepart::MultipartToSinglepart | ( | ) |
Definition at line 65 of file MultipartToSinglepart.cpp.
References ~MultipartToSinglepart().
|
default |
Referenced by MultipartToSinglepart().
|
protected |
Definition at line 288 of file MultipartToSinglepart.cpp.
References te::dt::Property::clone(), te::dt::GEOMETRY_TYPE, te::gm::GeometryProperty::getGeometryType(), te::gm::GetSimpleType(), te::dt::Property::getType(), te::dt::INT32_TYPE, m_inDsType, m_outDsName, te::gm::GeometryProperty::setGeometryType(), and te::da::PrimaryKey::setProperties().
Referenced by runAll(), and runSelected().
| bool te::vp::MultipartToSinglepart::run | ( | ) |
Definition at line 72 of file MultipartToSinglepart.cpp.
References te::da::GetFirstSpatialProperty(), te::gm::IsMultiType(), m_inDsType, m_oidSet, runAll(), runSelected(), and TE_TR.
Referenced by te::vp::MultipartToSinglepartDialog::onOkPushButtonClicked().
|
protected |
Definition at line 88 of file MultipartToSinglepart.cpp.
References te::da::GetFirstSpatialPropertyPos(), getOutDst(), m_inDsName, m_inDsrc, m_outDsrc, te::gm::Multi2Single(), te::vp::Save(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt32(), te::mem::DataSetItem::setValue(), TE_LOG_ERROR, and te::common::Exception::what().
Referenced by run().
|
protected |
Definition at line 172 of file MultipartToSinglepart.cpp.
References te::da::ObjectIdSet::contains(), te::da::GenerateOID(), te::da::GetFirstSpatialPropertyPos(), getOutDst(), te::da::ObjectIdSet::getPropertyNames(), m_inDsName, m_inDsrc, m_oidSet, m_outDsrc, te::gm::Multi2Single(), te::vp::Save(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt32(), te::mem::DataSetItem::setValue(), single2multi(), TE_LOG_ERROR, and te::common::Exception::what().
Referenced by run().
| void te::vp::MultipartToSinglepart::setInput | ( | te::da::DataSourcePtr | inDsrc, |
| std::string | inDsName, | ||
| std::unique_ptr< te::da::DataSetType > | inDsType, | ||
| const te::da::ObjectIdSet * | oidSet = 0 |
||
| ) |
Definition at line 271 of file MultipartToSinglepart.cpp.
References m_inDsName, m_inDsrc, m_inDsType, and m_oidSet.
Referenced by te::vp::MultipartToSinglepartDialog::onOkPushButtonClicked().
| void te::vp::MultipartToSinglepart::setOutput | ( | te::da::DataSourcePtr | outDsrc, |
| std::string | outDsName | ||
| ) |
Definition at line 282 of file MultipartToSinglepart.cpp.
References m_outDsName, and m_outDsrc.
Referenced by te::vp::MultipartToSinglepartDialog::onOkPushButtonClicked().
|
protected |
Definition at line 324 of file MultipartToSinglepart.cpp.
References te::gm::GeometryCollection::add(), te::gm::Geometry::getGeomTypeId(), te::gm::Geometry::getSRID(), 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::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::MultiPolygonZMType, te::gm::MultiPolygonZType, te::gm::PointMType, te::gm::PointType, te::gm::PointZMType, te::gm::PointZType, te::gm::PolygonMType, te::gm::PolygonType, te::gm::PolygonZMType, te::gm::PolygonZType, and te::gm::GeometryCollection::setSRID().
Referenced by runSelected().
|
private |
Definition at line 87 of file MultipartToSinglepart.h.
Referenced by runAll(), runSelected(), and setInput().
|
private |
Definition at line 86 of file MultipartToSinglepart.h.
Referenced by runAll(), runSelected(), and setInput().
|
private |
Definition at line 88 of file MultipartToSinglepart.h.
Referenced by getOutDst(), run(), and setInput().
|
private |
Definition at line 89 of file MultipartToSinglepart.h.
Referenced by run(), runSelected(), and setInput().
|
private |
Definition at line 92 of file MultipartToSinglepart.h.
Referenced by getOutDst(), and setOutput().
|
private |
Definition at line 91 of file MultipartToSinglepart.h.
Referenced by runAll(), runSelected(), and setOutput().