CommonFunctions.h File Reference
#include "Config.h"
#include "../geometry/CommonDataStructures.h"
#include "../geometry/Enums.h"
#include <vector>

Go to the source code of this file.

Namespaces

 te
 TerraLib.
 
 te::gm
 Namespace for the Vector Geometry module of TerraLib.
 
 te::vp
 Namespace for Vector Processing module of TerraLib.
 

Functions

TEVPEXPORT te::gm::GeometryVector te::vp::AdjustToGeomType (const te::gm::Geometry *geometry, te::gm::GeomType geomType)
 Adjust the given geometry to the given geometry type. If the conversion is not possible, the geometry is discarded. More...
 
TEVPEXPORT te::gm::GeometryVector te::vp::AdjustToGeomType (const te::gm::GeometryVector &vecGeometries, te::gm::GeomType geomType)
 
TEVPEXPORT void te::vp::DiscardFeaturesWithNullAndEmptyGeometries (te::vp::FeatureSet &featureSet)
 Splits all feature that have geometry collections in to features that have single type geometries. All the attributes are copied. More...
 
TEVPEXPORT te::gm::SpatialRelation te::vp::FastRelationCalculator (const te::gm::Geometry *geometryA, const te::gm::Geometry *geometryB)
 Algorithm to fast detection of spatial relations between geometries. Very useful to fase dectect if two geomtries dont intercept themselves Sometimes can generate false positives for overlaps, but never generates false positives for disjoint and touches. More...
 
TEVPEXPORT te::gm::SpatialRelation te::vp::FastRelationCalculator (const te::vp::GeometryInfo *geometryInfoA, const te::vp::GeometryInfo *geometryInfoB)
 Algorithm to fast detection of spatial relations between geometries. Very useful to fase dectect if two geomtries dont intercept themselves Sometimes can generate false positives for overlaps, but never generates false positives for disjoint and touches. More...
 
TEVPEXPORT void te::vp::GetAllSegments (const te::gm::Geometry *geometry, const te::gm::Envelope &filter, std::vector< SegmentInfo > &vecSegmentInfo)
 Gets the segment information related to all segments from the given geometry. An Optional filter can be used to filter the segments that will be returned. More...
 
TEVPEXPORT void te::vp::Multi2Single (const te::vp::Feature *feature, te::vp::FeatureSet &singleFeatureSet)
 Splits all the features that have geometry collections in to features that have single type geometries. All the attributes are copied. More...
 
TEVPEXPORT void te::vp::Multi2Single (const te::vp::FeatureSet &featureSet, te::vp::FeatureSet &singleFeatureSet)
 Adjust the given geometry to the given geometry type. If the conversion is not possible, the geometry is discarded. More...