26#ifndef __TERRALIB_VP_INTERNAL_COMMONFUNCTIONS_H
27#define __TERRALIB_VP_INTERNAL_COMMONFUNCTIONS_H
114 template<
typename GeometryTypeT >
116 const std::vector< GeometryTypeT* >& vecGeometries,
te::gm::GeomType geomType)
119 for (std::size_t i = 0; i < vecGeometries.size(); ++i)
122 vecGeometries.at(i), geomType);
123 result.insert(result.end(), currentResult.begin(), currentResult.end());
It is a collection of other geometric objects.
An Envelope defines a 2D rectangular region.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
An alias for a set of Features.
A feature is a composition of a geometry and its attributes.
Enumerations related to Geometry module.
Namespace for the Vector Geometry module of TerraLib.
std::vector< te::gm::Geometry * > GeometryVector
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
SpatialRelation
Spatial relations between geometric objects.
Namespace for Vector Processing module of TerraLib.
TEVPEXPORT te::gm::GeometryVector AdjustToGeomType(const te::gm::Geometry *inGeomPtr, te::gm::GeomType targetGeomType)
Adjust the given geometry to the given geometry type.
TEVPEXPORT void 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 ...
TEVPEXPORT te::gm::SpatialRelation 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 t...
TEVPEXPORT void DiscardFeaturesWithNullAndEmptyGeometries(te::vp::FeatureSet &featureSet)
Splits all feature that have geometry collections in to features that have single type geometries....
TEVPEXPORT void 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 geometrie...
An utility struct for representing 2D coordinates.
Configuration flags for the Terrralib Vector Processing module.
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.