te::vp::GeometrySnapper Class Reference

Algorithm to snap geometries to each other based on a given tolerance. More...

#include <GeometrySnapper.h>

Static Public Member Functions

static void discardNullAndEmptyFeatures (te::vp::FeatureSet &featureSet)
 
static te::gm::GeometryVector removeSlivers (const te::gm::GeometryVectorConst &geometryVector, double tolerance)
 Algorithm to remove slivers from geometries. More...
 
static te::vp::FeatureSet removeSlivers (const te::vp::FeatureSet &featureSet, double tolerance, bool discardCollapsedFeatures)
 Algorithm to remove slivers from features. More...
 
static te::gm::GeometryremoveSlivers (te::gm::Geometry *geometry, double tolerance)
 Algorithm to remove slivers from a geometry. More...
 
static te::vp::FeatureSet snapFeatures (const te::vp::FeatureSet &featureSet, double tolerance, bool discardCollapsedFeatures)
 Algorithm to snap given features to each other based on a given tolerance. This algorithm will also detect intersection segments between features and create new coordinates when necessary. More...
 
static te::gm::GeometrysnapGeometries (const te::gm::Geometry *geometry, double tolerance)
 Algorithm to snap given geometries to each other based on a given tolerance. This algorithm will also detect intersection segments between geometries and create new coordinates when necessary. More...
 
static te::gm::GeometryVector snapGeometries (const te::gm::GeometryVectorConst &geometryVector, double tolerance)
 Algorithm to snap given geometries to each other based on a given tolerance. This algorithm will also detect intersection segments between geometries and create new coordinates when necessary. More...
 

Detailed Description

Algorithm to snap geometries to each other based on a given tolerance.

See also
CoordinateSnapper

Definition at line 55 of file GeometrySnapper.h.

Member Function Documentation

◆ discardNullAndEmptyFeatures()

static void te::vp::GeometrySnapper::discardNullAndEmptyFeatures ( te::vp::FeatureSet featureSet)
static

◆ removeSlivers() [1/3]

static te::gm::GeometryVector te::vp::GeometrySnapper::removeSlivers ( const te::gm::GeometryVectorConst geometryVector,
double  tolerance 
)
static

Algorithm to remove slivers from geometries.

Parameters
geometryVectorThe geometry list to be analysed
toleranceThe tolerance to be considered for detecting the slivers.
Returns
The resulting geometries

◆ removeSlivers() [2/3]

static te::vp::FeatureSet te::vp::GeometrySnapper::removeSlivers ( const te::vp::FeatureSet featureSet,
double  tolerance,
bool  discardCollapsedFeatures 
)
static

Algorithm to remove slivers from features.

Parameters
vecGeometriesThe geometry list to be analysed
toleranceThe tolerance to be considered for detecting the slivers.
discardCollapsedFeaturesIF TRUE, all collapsed features will be discarded from the resulting featureSet
Returns
The resulting features Discard all the features that are null or empty

◆ removeSlivers() [3/3]

static te::gm::Geometry* te::vp::GeometrySnapper::removeSlivers ( te::gm::Geometry geometry,
double  tolerance 
)
static

Algorithm to remove slivers from a geometry.

Parameters
geometryThe geometry to be analysed
toleranceThe tolerance to be considered for detecting the slivers.
Returns
The resulting geometry

◆ snapFeatures()

static te::vp::FeatureSet te::vp::GeometrySnapper::snapFeatures ( const te::vp::FeatureSet featureSet,
double  tolerance,
bool  discardCollapsedFeatures 
)
static

Algorithm to snap given features to each other based on a given tolerance. This algorithm will also detect intersection segments between features and create new coordinates when necessary.

Parameters
vecGeometriesThe geometry list to be analysed
toleranceThe tolerance to be considered for the snapping of the coordinates.
discardCollapsedFeaturesIF TRUE, all collapsed features will be discarded from the resulting featureSet
Returns
The resulting snapped geometries

◆ snapGeometries() [1/2]

static te::gm::Geometry* te::vp::GeometrySnapper::snapGeometries ( const te::gm::Geometry geometry,
double  tolerance 
)
static

Algorithm to snap given geometries to each other based on a given tolerance. This algorithm will also detect intersection segments between geometries and create new coordinates when necessary.

Parameters
geometryVectorThe geometry list to be analysed
toleranceThe tolerance to be considered for the snapping of the coordinates.
Returns
The resulting snapped geometries

◆ snapGeometries() [2/2]

static te::gm::GeometryVector te::vp::GeometrySnapper::snapGeometries ( const te::gm::GeometryVectorConst geometryVector,
double  tolerance 
)
static

Algorithm to snap given geometries to each other based on a given tolerance. This algorithm will also detect intersection segments between geometries and create new coordinates when necessary.

Parameters
geometryVectorThe geometry list to be analysed
toleranceThe tolerance to be considered for the snapping of the coordinates.
Returns
The resulting snapped geometries

The documentation for this class was generated from the following file: