#include <MultipartToSinglepart.h>
Public Member Functions | |
MultipartToSinglepart () | |
bool | run () |
void | setInput (te::da::DataSourcePtr inDsrc, std::string inDsName, std::auto_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::auto_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::auto_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.
te::vp::MultipartToSinglepart::~MultipartToSinglepart | ( | ) |
Definition at line 69 of file MultipartToSinglepart.cpp.
|
protected |
Definition at line 267 of file MultipartToSinglepart.cpp.
References te::dt::Property::clone(), te::dt::GEOMETRY_TYPE, te::gm::GeometryProperty::getGeometryType(), te::vp::GetSimpleType(), te::dt::Property::getType(), te::dt::INT32_TYPE, and te::gm::GeometryProperty::setGeometryType().
bool te::vp::MultipartToSinglepart::run | ( | ) |
Definition at line 73 of file MultipartToSinglepart.cpp.
References te::da::GetFirstSpatialProperty(), te::vp::IsMultiType(), and TE_TR.
Referenced by te::vp::MultipartToSinglepartDialog::onOkPushButtonClicked().
|
protected |
Definition at line 89 of file MultipartToSinglepart.cpp.
References te::da::GetFirstSpatialPropertyPos(), te::vp::Multi2Single(), te::vp::Save(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt32(), and te::mem::DataSetItem::setValue().
|
protected |
Definition at line 162 of file MultipartToSinglepart.cpp.
References te::da::GenerateOID(), te::da::GetFirstSpatialPropertyPos(), te::vp::Multi2Single(), te::vp::Save(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt32(), and te::mem::DataSetItem::setValue().
void te::vp::MultipartToSinglepart::setInput | ( | te::da::DataSourcePtr | inDsrc, |
std::string | inDsName, | ||
std::auto_ptr< te::da::DataSetType > | inDsType, | ||
const te::da::ObjectIdSet * | oidSet = 0 |
||
) |
Definition at line 250 of file MultipartToSinglepart.cpp.
Referenced by te::vp::MultipartToSinglepartDialog::onOkPushButtonClicked().
void te::vp::MultipartToSinglepart::setOutput | ( | te::da::DataSourcePtr | outDsrc, |
std::string | outDsName | ||
) |
Definition at line 261 of file MultipartToSinglepart.cpp.
Referenced by te::vp::MultipartToSinglepartDialog::onOkPushButtonClicked().
|
protected |
Definition at line 296 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().
|
private |
Definition at line 87 of file MultipartToSinglepart.h.
|
private |
Definition at line 86 of file MultipartToSinglepart.h.
|
private |
Definition at line 88 of file MultipartToSinglepart.h.
|
private |
Definition at line 89 of file MultipartToSinglepart.h.
|
private |
Definition at line 92 of file MultipartToSinglepart.h.
|
private |
Definition at line 91 of file MultipartToSinglepart.h.