#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::auto_ptr< te::da::DataSetType > inDsetType) |
void | setOutput (std::auto_ptr< te::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, bool outputLayer) |
~GeometricOpMemory () | |
Protected Member Functions | |
double | CalculateTabularOp (int tabOperation, te::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::string | m_inDsetName |
std::auto_ptr < te::da::DataSetType > | m_inDsetType |
te::da::DataSourcePtr | m_inDsrc |
te::vp::GeometricOpObjStrategy | m_objStrategy |
std::vector < te::vp::GeometricOperation > | m_operations |
std::string | m_outDsetName |
std::vector< std::string > | m_outDsetNameVec |
std::auto_ptr< te::da::DataSource > | m_outDsrc |
bool | m_outputLayer |
std::vector< std::string > | m_selectedProps |
Definition at line 55 of file GeometricOpMemory.h.
te::vp::GeometricOpMemory::GeometricOpMemory | ( | ) |
Definition at line 67 of file GeometricOpMemory.cpp.
te::vp::GeometricOpMemory::~GeometricOpMemory | ( | ) |
Definition at line 70 of file GeometricOpMemory.cpp.
|
protected |
Definition at line 829 of file GeometricOpMemory.cpp.
References te::vp::AREA, te::gm::MultiSurface::getArea(), te::gm::CurvePolygon::getArea(), te::gm::GeometryCollection::getGeometries(), te::gm::Geometry::getGeometryType(), te::gm::Geometry::getGeomTypeId(), te::gm::Curve::getLength(), te::gm::MultiCurve::getLength(), te::gm::MultiSurface::getPerimeter(), te::gm::CurvePolygon::getPerimeter(), te::vp::LINE, te::gm::LineStringType, te::gm::MultiLineStringType, te::gm::MultiPolygonType, te::vp::PERIMETER, and te::gm::PolygonType.
|
protectedinherited |
Definition at line 95 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::dt::Property::clone(), te::vp::CONVEX_HULL, te::dt::DOUBLE_TYPE, te::da::GetFirstGeomProperty(), te::gm::GeometryProperty::getGeometryType(), te::gm::GeometryProperty::getSRID(), te::dt::INT32_TYPE, te::vp::LINE, te::gm::LineStringType, te::vp::MBR, te::gm::MultiLineStringType, te::gm::MultiPointType, te::gm::MultiPolygonType, te::vp::PERIMETER, te::gm::PointType, te::gm::PolygonType, 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 90 of file GeometricOp.cpp.
Referenced by te::vp::GeometricOpWizard::execute().
|
virtualinherited |
Definition at line 76 of file GeometricOp.cpp.
Referenced by te::vp::GeometricOpWizard::execute().
|
virtual |
Implements te::vp::GeometricOp.
Definition at line 74 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::MBR, te::vp::PERIMETER, and te::vp::Save().
|
protected |
Definition at line 593 of file GeometricOpMemory.cpp.
References te::gm::GeometryCollection::add(), te::vp::AREA, te::vp::CENTROID, te::vp::CONVEX_HULL, te::dt::DOUBLE_TYPE, te::dt::GEOMETRY_TYPE, te::gm::GeometryCollectionType, te::gm::Envelope::getCenter(), te::da::GetFirstSpatialPropertyPos(), te::gm::GeometryProperty::getGeometryType(), te::vp::GetGeometryUnion(), te::gm::GeometryCollection::getNumGeometries(), te::da::GetPropertyPos(), te::dt::Property::getType(), te::mem::DataSetItem::getValue(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::gm::Geometry::isValid(), te::vp::LINE, te::gm::LineStringType, te::vp::MBR, te::vp::PERIMETER, te::gm::PointType, te::gm::PolygonType, 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::mem::DataSetItem::setValue(), te::dt::STRING_TYPE, te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
protected |
Definition at line 429 of file GeometricOpMemory.cpp.
References te::gm::GeometryCollection::add(), te::vp::AREA, te::vp::CENTROID, te::vp::CONVEX_HULL, te::gm::GeometryCollectionType, te::gm::Envelope::getCenter(), te::da::GetFirstSpatialPropertyPos(), te::gm::GeometryCollection::getNumGeometries(), te::da::GetPropertyPos(), te::vp::LINE, te::gm::LineStringType, te::vp::MBR, te::vp::PERIMETER, te::gm::PointType, te::gm::PolygonType, te::mem::DataSetItem::setDouble(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt32(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
protected |
Definition at line 255 of file GeometricOpMemory.cpp.
References te::vp::AREA, te::vp::CENTROID, te::vp::CONVEX_HULL, te::gm::GeometryCollectionType, te::gm::Envelope::getCenter(), te::da::GetFirstSpatialPropertyPos(), te::da::GetPropertyPos(), te::vp::LINE, te::gm::LineStringType, te::vp::MBR, te::vp::PERIMETER, te::gm::PointType, te::gm::PolygonType, te::mem::DataSetItem::setDouble(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt32(), te::mem::DataSetItem::setValue(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
inherited |
Definition at line 48 of file GeometricOp.cpp.
Referenced by te::vp::GeometricOpWizard::execute().
|
inherited |
Definition at line 70 of file GeometricOp.cpp.
Referenced by te::vp::GeometricOpWizard::execute().
|
inherited |
Definition at line 57 of file GeometricOp.cpp.
Referenced by te::vp::GeometricOpWizard::execute().
|
protectedinherited |
Definition at line 94 of file GeometricOp.h.
|
protectedinherited |
Definition at line 88 of file GeometricOp.h.
|
protectedinherited |
Definition at line 89 of file GeometricOp.h.
|
protectedinherited |
Definition at line 87 of file GeometricOp.h.
|
protectedinherited |
Definition at line 93 of file GeometricOp.h.
|
protectedinherited |
Definition at line 92 of file GeometricOp.h.
|
protectedinherited |
Definition at line 98 of file GeometricOp.h.
|
protectedinherited |
Definition at line 99 of file GeometricOp.h.
|
protectedinherited |
Definition at line 97 of file GeometricOp.h.
|
protectedinherited |
Definition at line 95 of file GeometricOp.h.
|
protectedinherited |
Definition at line 91 of file GeometricOp.h.