#include <GeometricOpMemory.h>
Public Member Functions | |
| GeometricOpMemory () | |
| std::vector< std::string > | GetOutputDSetNames () |
| virtual bool | paramsAreValid () |
| bool | run () throw (te::common::Exception) |
| void | setInput (te::da::DataSourcePtr inDsrc, std::string inDsetName, std::unique_ptr< te::da::DataSetTypeConverter > converter) |
| void | setOutput (std::unique_ptr< da::DataSource > outDsrc, std::string dsname) |
| void | setParams (std::vector< std::string > selectedProps, std::vector< te::vp::GeometricOperation > operations, te::vp::GeometricOpObjStrategy objStrategy, std::string attribute, int newSRID) |
| ~GeometricOpMemory () | |
Protected Member Functions | |
| double | CalculateTabularOp (const int &tabOperation, gm::Geometry &geom) |
| te::da::DataSetType * | GetDataSetType (te::vp::GeometricOpObjStrategy, bool MultiGeomColumns, int geomOp=-1) |
| te::mem::DataSet * | SetAggregByAttribute (te::da::DataSetType *dsType, std::vector< int > tabVec, std::vector< int > geoVec) |
| te::mem::DataSet * | SetAggregObj (te::da::DataSetType *dsType, std::vector< int > tabVec, std::vector< int > geoVec) |
| te::mem::DataSet * | SetAllObjects (te::da::DataSetType *dsType, std::vector< int > tabVec, std::vector< int > geoVec) |
Protected Attributes | |
| std::string | m_attribute |
| std::unique_ptr< te::da::DataSetTypeConverter > | m_converter |
| std::string | m_inDsetName |
| te::da::DataSourcePtr | m_inDsrc |
| int | m_newSRID |
| te::vp::GeometricOpObjStrategy | m_objStrategy |
| std::vector< te::vp::GeometricOperation > | m_operations |
| std::string | m_outDsetName |
| std::vector< std::string > | m_outDsetNameVec |
| std::unique_ptr< te::da::DataSource > | m_outDsrc |
| std::vector< std::string > | m_selectedProps |
Definition at line 42 of file GeometricOpMemory.h.
|
default |
|
default |
|
protected |
Definition at line 967 of file GeometricOpMemory.cpp.
References te::vp::AREA, te::dt::AbstractData::clone(), te::gm::MultiSurface::getArea(), te::gm::CurvePolygon::getArea(), te::gm::Geometry::getGeometryType(), te::gm::Geometry::getGeomTypeId(), te::gm::MultiSurface::getPerimeter(), te::gm::CurvePolygon::getPerimeter(), te::vp::LINE, te::gm::LineStringType, te::vp::GeometricOp::m_newSRID, te::gm::MultiLineStringType, te::gm::MultiPolygonType, te::vp::PERIMETER, te::gm::PolygonType, and TE_LOG_INFO.
Referenced by SetAggregByAttribute(), SetAggregObj(), and SetAllObjects().
|
protectedinherited |
Definition at line 79 of file GeometricOp.cpp.
References te::da::PrimaryKey::add(), te::da::DataSetType::add(), te::vp::AGGREG_BY_ATTRIBUTE, te::vp::ALL_OBJ, te::vp::AREA, te::vp::CENTROID, te::vp::CONVEX_HULL, te::dt::DOUBLE_TYPE, te::da::GetFirstGeomProperty(), te::gm::GeometryProperty::getGeometryType(), te::gm::GeometryProperty::getSRID(), te::dt::INT32_TYPE, line, te::vp::LINE, te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::vp::GeometricOp::m_attribute, te::vp::GeometricOp::m_converter, te::vp::GeometricOp::m_operations, te::vp::GeometricOp::m_outDsetName, te::vp::GeometricOp::m_selectedProps, te::vp::MBR, 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::vp::PERIMETER, 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::dt::SimpleProperty::setAutoNumber(), te::gm::GeometryProperty::setGeometryType(), te::dt::Property::setParent(), te::da::DataSetType::setPrimaryKey(), te::gm::GeometryProperty::setSRID(), and te::da::DataSetType::setTitle().
Referenced by run(), and te::vp::GeometricOpQuery::run().
|
inherited |
Definition at line 74 of file GeometricOp.cpp.
References te::vp::GeometricOp::m_outDsetNameVec.
Referenced by te::vp::GeometricOpDialog::onOkPushButtonClicked().
|
virtualinherited |
Definition at line 60 of file GeometricOp.cpp.
References te::vp::GeometricOp::m_converter, te::vp::GeometricOp::m_outDsetName, and te::vp::GeometricOp::m_outDsrc.
Referenced by te::vp::GeometricOpDialog::onOkPushButtonClicked().
|
virtual | |||||||||||||
Implements te::vp::GeometricOp.
Definition at line 60 of file GeometricOpMemory.cpp.
References te::vp::AGGREG_BY_ATTRIBUTE, te::vp::AGGREG_OBJ, te::vp::ALL_OBJ, te::vp::AREA, te::vp::CENTROID, te::vp::CONVEX_HULL, te::vp::GeometricOp::GetDataSetType(), te::vp::LINE, te::vp::GeometricOp::m_objStrategy, te::vp::GeometricOp::m_operations, te::vp::GeometricOp::m_outDsetNameVec, te::vp::GeometricOp::m_outDsrc, te::da::DataSourceFactory::make(), te::vp::MBR, te::vp::PERIMETER, te::vp::Save(), SetAggregByAttribute(), SetAggregObj(), SetAllObjects(), and TE_LOG_INFO.
|
protected |
Definition at line 711 of file GeometricOpMemory.cpp.
References te::gm::GeometryCollection::add(), te::vp::AREA, CalculateTabularOp(), te::vp::CENTROID, te::vp::CONVEX_HULL, te::da::CreateAdapter(), te::dt::DOUBLE_TYPE, te::gm::GeometryCollectionType, te::gm::Envelope::getCenter(), te::da::GetFirstSpatialPropertyPos(), te::gm::GetGeometryUnion(), te::gm::GeometryCollection::getNumGeometries(), te::da::GetPropertyPos(), te::dt::Property::getType(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, line, te::vp::LINE, te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::vp::GeometricOp::m_attribute, te::vp::GeometricOp::m_converter, te::vp::GeometricOp::m_inDsetName, te::vp::GeometricOp::m_inDsrc, te::vp::MBR, te::vp::PERIMETER, 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::mem::DataSetItem::setDouble(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt16(), te::mem::DataSetItem::setInt32(), te::mem::DataSetItem::setInt64(), te::mem::DataSetItem::setString(), te::dt::STRING_TYPE, TE_LOG_ERROR, TE_LOG_INFO, te::common::Exception::what(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by run().
|
protected |
Definition at line 524 of file GeometricOpMemory.cpp.
References te::gm::GeometryCollection::add(), te::vp::AREA, CalculateTabularOp(), te::vp::CENTROID, te::vp::CONVEX_HULL, te::da::CreateAdapter(), te::gm::GeometryCollectionType, te::gm::Envelope::getCenter(), te::da::GetFirstGeomProperty(), te::da::GetFirstSpatialPropertyPos(), te::vp::GetGeometryUnion(), te::gm::GeometryCollection::getNumGeometries(), te::da::GetPropertyPos(), te::gm::GeometryProperty::getSRID(), line, te::vp::LINE, te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::vp::GeometricOp::m_converter, te::vp::GeometricOp::m_inDsetName, te::vp::GeometricOp::m_inDsrc, te::vp::MBR, te::vp::PERIMETER, 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::mem::DataSetItem::setDouble(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt32(), TE_LOG_ERROR, TE_LOG_INFO, te::common::Exception::what(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by run().
|
protected |
Definition at line 311 of file GeometricOpMemory.cpp.
References te::gm::GeometryCollection::add(), te::vp::AREA, CalculateTabularOp(), te::vp::CENTROID, te::vp::CONVEX_HULL, te::da::CreateAdapter(), te::gm::GeometryCollectionType, te::da::GetFirstGeomProperty(), te::da::GetFirstSpatialPropertyPos(), te::gm::GeometryCollection::getNumGeometries(), te::da::GetPropertyPos(), te::gm::GeometryProperty::getSRID(), line, te::vp::LINE, te::gm::LineStringMType, te::gm::LineStringType, te::gm::LineStringZMType, te::gm::LineStringZType, te::vp::GeometricOp::m_converter, te::vp::GeometricOp::m_inDsetName, te::vp::GeometricOp::m_inDsrc, te::vp::GeometricOp::m_selectedProps, te::vp::MBR, te::vp::PERIMETER, 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::mem::DataSetItem::setDouble(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt32(), te::mem::DataSetItem::setValue(), TE_LOG_ERROR, TE_LOG_INFO, te::common::Exception::what(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by run().
|
inherited |
Definition at line 31 of file GeometricOp.cpp.
References te::vp::GeometricOp::m_converter, te::vp::GeometricOp::m_inDsetName, and te::vp::GeometricOp::m_inDsrc.
Referenced by te::vp::GeometricOpDialog::onOkPushButtonClicked().
|
inherited |
Definition at line 53 of file GeometricOp.cpp.
References te::vp::GeometricOp::m_outDsetName, and te::vp::GeometricOp::m_outDsrc.
Referenced by te::vp::GeometricOpDialog::onOkPushButtonClicked().
|
inherited |
Definition at line 40 of file GeometricOp.cpp.
References te::qt::plugins::wtss::attribute, te::vp::GeometricOp::m_attribute, te::vp::GeometricOp::m_newSRID, te::vp::GeometricOp::m_objStrategy, te::vp::GeometricOp::m_operations, and te::vp::GeometricOp::m_selectedProps.
Referenced by te::vp::GeometricOpDialog::onOkPushButtonClicked().
|
protectedinherited |
Definition at line 88 of file GeometricOp.h.
Referenced by te::vp::GeometricOp::GetDataSetType(), SetAggregByAttribute(), te::vp::GeometricOpQuery::SetAggregByAttribute(), and te::vp::GeometricOp::setParams().
|
protectedinherited |
Definition at line 83 of file GeometricOp.h.
Referenced by te::vp::GeometricOp::GetDataSetType(), te::vp::GeometricOp::paramsAreValid(), SetAggregByAttribute(), te::vp::GeometricOpQuery::SetAggregByAttribute(), SetAggregObj(), te::vp::GeometricOpQuery::SetAggregObj(), SetAllObjects(), te::vp::GeometricOpQuery::SetAllObjects(), and te::vp::GeometricOp::setInput().
|
protectedinherited |
Definition at line 82 of file GeometricOp.h.
Referenced by SetAggregByAttribute(), te::vp::GeometricOpQuery::SetAggregByAttribute(), SetAggregObj(), te::vp::GeometricOpQuery::SetAggregObj(), SetAllObjects(), te::vp::GeometricOpQuery::SetAllObjects(), and te::vp::GeometricOp::setInput().
|
protectedinherited |
Definition at line 81 of file GeometricOp.h.
Referenced by SetAggregByAttribute(), te::vp::GeometricOpQuery::SetAggregByAttribute(), SetAggregObj(), te::vp::GeometricOpQuery::SetAggregObj(), SetAllObjects(), te::vp::GeometricOpQuery::SetAllObjects(), and te::vp::GeometricOp::setInput().
|
protectedinherited |
Definition at line 89 of file GeometricOp.h.
Referenced by CalculateTabularOp(), te::vp::GeometricOpQuery::SetAggregByAttribute(), te::vp::GeometricOpQuery::SetAggregObj(), te::vp::GeometricOpQuery::SetAllObjects(), and te::vp::GeometricOp::setParams().
|
protectedinherited |
Definition at line 87 of file GeometricOp.h.
Referenced by run(), te::vp::GeometricOpQuery::run(), and te::vp::GeometricOp::setParams().
|
protectedinherited |
Definition at line 86 of file GeometricOp.h.
Referenced by te::vp::GeometricOp::GetDataSetType(), run(), te::vp::GeometricOpQuery::run(), and te::vp::GeometricOp::setParams().
|
protectedinherited |
Definition at line 92 of file GeometricOp.h.
Referenced by te::vp::GeometricOp::GetDataSetType(), te::vp::GeometricOp::paramsAreValid(), and te::vp::GeometricOp::setOutput().
|
protectedinherited |
Definition at line 93 of file GeometricOp.h.
Referenced by te::vp::GeometricOp::GetOutputDSetNames(), run(), and te::vp::GeometricOpQuery::run().
|
protectedinherited |
Definition at line 91 of file GeometricOp.h.
Referenced by te::vp::GeometricOp::paramsAreValid(), run(), te::vp::GeometricOpQuery::run(), and te::vp::GeometricOp::setOutput().
|
protectedinherited |
Definition at line 85 of file GeometricOp.h.
Referenced by te::vp::GeometricOp::GetDataSetType(), SetAllObjects(), te::vp::GeometricOpQuery::SetAllObjects(), and te::vp::GeometricOp::setParams().