#include <VectorToVectorMemory.h>
Public Member Functions | |
| bool | hasErrors () |
| virtual bool | paramsAreValid () |
| bool | run () |
| It execute the operations. More... | |
| void | setInput (te::map::AbstractLayerPtr fromLayer, te::map::AbstractLayerPtr toLayer) |
| It set the input informations. More... | |
| void | setOutput (te::da::DataSourcePtr outDsrc, std::string dsName) |
| It set output. More... | |
| void | setParams (const std::map< std::string, std::vector< te::attributefill::OperationType > > &options, std::vector< std::string > toLayerProps) |
| void | setParams (const std::map< te::dt::Property *, std::vector< std::string > > &options) |
| It set the params used to execute. More... | |
| VectorToVectorMemory () | |
| Constructor. More... | |
| ~VectorToVectorMemory () | |
Protected Member Functions | |
| bool | checkGeometries (te::gm::Geometry *fromGeom, std::size_t fromPos, te::gm::Geometry *toGeom) |
| std::vector< te::gm::Point * > | getAllPointsOfGeometry (te::gm::Geometry *geom) |
| It get all points of a geometry. More... | |
| double | getArea (te::gm::Geometry *geom) |
| It get the area of a geometry. More... | |
| te::dt::AbstractData * | getClassWithHighestIntersectionArea (te::da::DataSet *toDs, std::size_t toSrid, te::da::DataSet *fromDs, std::size_t fromSrid, std::vector< std::size_t > dsPos, const std::string &propertyName, std::vector< std::vector< te::dt::AbstractData * > > &dataValues) |
| It get the class with highest intersection area from "From" data set in "To" data set. More... | |
| te::dt::AbstractData * | getClassWithHighestOccurrence (te::da::DataSet *fromDs, std::vector< std::size_t > dsPos, const std::string &propertyName, std::vector< std::vector< te::dt::AbstractData * > > &dataValues) |
| It get the class with highest occurrence from "From" data set in "To" data set. More... | |
| te::dt::AbstractData * | getDataBasedOnType (const std::string &strValue, const int type) |
| It get a abstract data with the value based on the type. More... | |
| std::vector< std::vector< te::dt::AbstractData * > > | getDataValues (te::da::DataSet *fromDs, std::vector< std::size_t > dsPos) |
| It get the value of all positions in "To" data set that has intersection with a position of "From" data set. More... | |
| std::vector< std::string > | getDistinctClasses (te::da::DataSet *fromDs, const std::string &propertyName) |
| It return distincts values of a property from the "From" data set. More... | |
| std::vector< std::size_t > | getIntersections (te::da::DataSet *toDs, te::da::DataSet *fromDs, te::sam::rtree::Index< size_t, 8 > *rtree, bool &hasInvalid) |
| It verify all intersection between the "From" and "To" data sets. More... | |
| KD_ADAPTATIVE_TREE * | getKDtree (te::da::DataSet *data, std::size_t toSrid) |
| It return a KDTree. More... | |
| double | getMinimumDistance (te::da::DataSet *toDs, std::size_t toSrid, te::da::DataSet *fromDs, std::size_t fromSrid, KD_ADAPTATIVE_TREE *kdtree) |
| It get the minimum distance of objects that not intersect. More... | |
| double | getMinimumDistanceFromCentroid (te::da::DataSet *toDs, std::size_t toSrid, te::da::DataSet *fromDs, std::size_t fromSrid, KD_ADAPTATIVE_TREE *kdtree) |
| It get the minimum distance of objects centroid that not intersect. More... | |
| std::string | getModeValue (te::stat::NumericStatisticalSummary ss) |
| It get a string with the mode operation format. More... | |
| std::vector< double > | getNumValues (std::vector< std::vector< te::dt::AbstractData * > > dataValues, std::size_t pos) |
| It get the numeric values of a vector of abstract data. More... | |
| te::da::DataSetType * | getOutputDataSetType () |
| It create a data set type based on selecteds properties and operations. More... | |
| std::map< std::string, double > | getPercentageOfEachClassByArea (te::da::DataSet *toDs, std::size_t toSrid, te::da::DataSet *fromDs, std::size_t fromSrid, std::vector< std::size_t > dsPos, const std::string &propertyName, std::vector< std::vector< te::dt::AbstractData * > > &dataValues) |
| It get the percentage of each class intersection area in the total area. More... | |
| double | getPercentageOfTotalArea (te::da::DataSet *toDs, std::size_t toSrid, te::da::DataSet *fromDs, std::size_t fromSrid, std::vector< std::size_t > dsPos, const std::string &propertyName, std::vector< std::vector< te::dt::AbstractData * > > &dataValues) |
| It get the percentage of intersection area in the total area. More... | |
| std::map< std::string, double > | getPercentagePerClass (te::da::DataSet *fromDs, std::vector< std::size_t > dsPos, const std::string &propertyName, std::vector< std::vector< te::dt::AbstractData * > > &dataValues) |
| It get the percent per class from "From" data set in "To" data set. More... | |
| std::string | getPropertyName (te::dt::Property *prop, te::attributefill::OperationType func) |
| It return a name based on original property name and the selected operation. More... | |
| te::sam::rtree::Index< size_t, 8 > * | getRtree (te::da::DataSet *data) |
| It return a RTree with data set iterator position information. More... | |
| std::vector< std::string > | getStrValues (std::vector< std::vector< te::dt::AbstractData * > > dataValues, std::size_t pos) |
| It get the string values of a vector of abstract data. More... | |
| double | getValue (te::stat::NumericStatisticalSummary ss, te::attributefill::OperationType type) |
| It get the value of required operation type from numeric statistical summary. More... | |
| std::string | getValue (te::stat::StringStatisticalSummary ss, te::attributefill::OperationType type) |
| It get the value of required operation type from string statistical summary. More... | |
| double | getWeightedByArea (te::da::DataSet *toDs, std::size_t toSrid, te::da::DataSet *fromDs, std::size_t fromSrid, std::vector< std::size_t > dsPos, const std::string &propertyName, std::vector< std::vector< te::dt::AbstractData * > > &dataValues) |
| It get the weighted average if intersections values. More... | |
| double | getWeightedSumByArea (te::da::DataSet *toDs, std::size_t toSrid, te::da::DataSet *fromDs, std::size_t fromSrid, std::vector< std::size_t > dsPos, const std::string &propertyName, std::vector< std::vector< te::dt::AbstractData * > > &dataValues) |
| It get the sum of weighted average if intersections values. More... | |
| bool | hasNoIntersectionOperations () |
| Verify if has operations that don't need the intersections. More... | |
| bool | isLine (te::gm::GeomType type) |
| It verify if the geometry is a line. More... | |
| bool | isMultiLine (te::gm::GeomType type) |
| It verify if the geometry is a multi line. More... | |
| bool | isMultiPoint (te::gm::GeomType type) |
| It verify if the geometry is a multi point. More... | |
| bool | isMultiPolygon (te::gm::GeomType type) |
| It verify if the geometry is a multi polygon. More... | |
| bool | isPoint (te::gm::GeomType type) |
| It verify if the geometry is a point. More... | |
| bool | isPolygon (te::gm::GeomType type) |
| It verify if the geometry is a polygon. More... | |
| bool | isStatistical (te::attributefill::OperationType type) |
| It verify if the operation is a statistical operation. More... | |
| bool | isToLayerOGR () |
| void | normalizeClassName (std::string &name) |
| bool | save (std::auto_ptr< te::mem::DataSet > result, std::auto_ptr< te::da::DataSetType > outDsType) |
Protected Attributes | |
| te::map::AbstractLayerPtr | m_fromLayer |
| bool | m_hasErrors |
| std::map< std::string, std::vector< te::attributefill::OperationType > > | m_options |
| std::string | m_outDset |
| te::da::DataSourcePtr | m_outDsrc |
| te::map::AbstractLayerPtr | m_toLayer |
| std::vector< std::string > | m_toLayerProps |
Private Attributes | |
| std::map< std::size_t, te::gm::Geometry * > | m_mapGeom |
Definition at line 76 of file VectorToVectorMemory.h.
| te::attributefill::VectorToVectorMemory::VectorToVectorMemory | ( | ) |
Constructor.
| te::attributefill::VectorToVectorMemory::~VectorToVectorMemory | ( | ) |
|
protected |
|
protected |
It get all points of a geometry.
| geom | The geometry. |
|
protected |
It get the area of a geometry.
| geom | The geometry. |
|
protected |
It get the class with highest intersection area from "From" data set in "To" data set.
| toDs | The "To" data set. |
| toSrid | The "To" data set srid. |
| fromDs | The "From" data set. |
| fromSrid | The "From" data set srid. |
| dsPos | Vector of "To" data set positions that intersect "From". |
| propertyName | Required property name. |
| dataValues | Vector that contains all values of the item that intersects the "To" data set. (line and columns). |
|
protected |
It get the class with highest occurrence from "From" data set in "To" data set.
| fromDs | The "From" data set. |
| dsPos | Vector of "To" data set positions that intersect "From". |
| propertyName | Required property name. |
| dataValues | Vector that contains all values of the item that intersects the "To" data set. (line and columns). |
|
protected |
It get a abstract data with the value based on the type.
| strValue | The string value. |
| type | The value type. |
|
protected |
It get the value of all positions in "To" data set that has intersection with a position of "From" data set.
| fromDs | The "From" data set. |
| dsPos | Vector of intersections positions. |
| propertyName | The property name. |
|
protected |
It return distincts values of a property from the "From" data set.
| fromDs | The "From" data set. |
| propertyName | The property name with the information. |
|
protected |
It verify all intersection between the "From" and "To" data sets.
| toDs | The "To" data set. |
| fromDs | The "From" data set. |
| rtree | A generated RTree based on the "From" data set. |
| hasInvalid | Set true if there are any invalid geometry as intersection candidate. |
|
protected |
It return a KDTree.
| data | The Data Set. |
| toSrid | Data Set srid. |
|
protected |
It get the minimum distance of objects that not intersect.
| toDs | The "To" data set. |
| toSrid | The "To" data set srid. |
| fromDs | The "From" data set. |
| fromSrid | The "From" data set srid. |
| kdtree | A generated KDTree based on the "From" data set. |
|
protected |
It get the minimum distance of objects centroid that not intersect.
| toDs | The "To" data set. |
| toSrid | The "To" data set srid. |
| fromDs | The "From" data set. |
| fromSrid | The "From" data set srid. |
| kdtree | A generated KDTree based on the "From" data set. |
|
protected |
It get a string with the mode operation format.
| ss | The string statistical summary. |
|
protected |
It get the numeric values of a vector of abstract data.
| data | Vector of abstract data. |
|
protected |
It create a data set type based on selecteds properties and operations.
|
protected |
It get the percentage of each class intersection area in the total area.
| toDs | The "To" data set. |
| toSrid | The "To" data set srid. |
| fromDs | The "From" data set. |
| fromSrid | The "From" data set srid. |
| dsPos | Vector of "To" data set positions that intersect "From". |
| propertyName | Required property name. |
| dataValues | Vector that contains all values of the item that intersects the "To" data set. (line and columns). |
|
protected |
It get the percentage of intersection area in the total area.
| toDs | The "To" data set. |
| toSrid | The "To" data set srid. |
| fromDs | The "From" data set. |
| fromSrid | The "From" data set srid. |
| dsPos | Vector of "To" data set positions that intersect "From". |
| propertyName | Required property name. |
| dataValues | Vector that contains all values of the item that intersects the "To" data set. (line and columns). |
|
protected |
It get the percent per class from "From" data set in "To" data set.
| fromDs | The "From" data set. |
| dsPos | Vector of "To" data set positions that intersect "From". |
| propertyName | Required property name. |
| dataValues | Vector that contains all values of the item that intersects the "To" data set. (line and columns). |
|
protected |
It return a name based on original property name and the selected operation.
| prop | The original property. |
| func | The selected operation. |
|
protected |
It return a RTree with data set iterator position information.
| data | The Data Set. |
|
protected |
It get the string values of a vector of abstract data.
| data | Vector of abstract data. |
|
protected |
It get the value of required operation type from numeric statistical summary.
| ss | The numeric statistical summary. |
| type | Required operation type. |
|
protected |
It get the value of required operation type from string statistical summary.
| ss | The string statistical summary. |
| type | Required operation type. |
|
protected |
It get the weighted average if intersections values.
| toDs | The "To" data set. |
| toSrid | The "To" data set srid. |
| fromDs | The "From" data set. |
| fromSrid | The "From" data set srid. |
| dsPos | Vector of "To" data set positions that intersect "From". |
| propertyName | Required property name. |
| dataValues | Vector that contains all values of the item that intersects the "To" data set. (line and columns). |
|
protected |
It get the sum of weighted average if intersections values.
| toDs | The "To" data set. |
| toSrid | The "To" data set srid. |
| fromDs | The "From" data set. |
| fromSrid | The "From" data set srid. |
| dsPos | Vector of "To" data set positions that intersect "From". |
| propertyName | Required property name. |
| dataValues | Vector that contains all values of the item that intersects the "To" data set. (line and columns). |
|
inherited |
|
protected |
Verify if has operations that don't need the intersections.
|
protected |
It verify if the geometry is a line.
| type | The geometry type. |
|
protected |
It verify if the geometry is a multi line.
| type | The geometry type. |
|
protected |
It verify if the geometry is a multi point.
| type | The geometry type. |
|
protected |
It verify if the geometry is a multi polygon.
| type | The geometry type. |
|
protected |
It verify if the geometry is a point.
| type | The geometry type. |
|
protected |
It verify if the geometry is a polygon.
| type | The geometry type. |
|
protected |
It verify if the operation is a statistical operation.
| type | The operation type. |
|
protected |
|
protected |
|
virtualinherited |
|
virtual |
|
protectedinherited |
| void te::attributefill::VectorToVectorMemory::setInput | ( | te::map::AbstractLayerPtr | fromLayer, |
| te::map::AbstractLayerPtr | toLayer | ||
| ) |
It set the input informations.
| fromLayer | Te "From" Layer. |
| toLayer | The "To" Layer. |
| void te::attributefill::VectorToVectorMemory::setOutput | ( | te::da::DataSourcePtr | outDsrc, |
| std::string | dsName | ||
| ) |
It set output.
| outDsrc | The Data Source that will be the result. |
| dsName | The name of output data set. |
|
inherited |
| void te::attributefill::VectorToVectorMemory::setParams | ( | const std::map< te::dt::Property *, std::vector< std::string > > & | options | ) |
It set the params used to execute.
| options | Property and string vector map with informations about which property was selected and which operations were selected to this property. |
|
protectedinherited |
Definition at line 83 of file VectorToVectorOp.h.
|
protectedinherited |
Definition at line 81 of file VectorToVectorOp.h.
|
private |
Definition at line 519 of file VectorToVectorMemory.h.
|
protectedinherited |
Definition at line 86 of file VectorToVectorOp.h.
|
protectedinherited |
Definition at line 90 of file VectorToVectorOp.h.
|
protectedinherited |
Definition at line 89 of file VectorToVectorOp.h.
|
protectedinherited |
Definition at line 84 of file VectorToVectorOp.h.
|
protectedinherited |
Definition at line 87 of file VectorToVectorOp.h.