te::gm::FixGeometryTopology Class Reference

A static class with methods to fix geometry topology. More...

#include <FixGeometryTopology.h>

Inheritance diagram for te::gm::FixGeometryTopology:
te::common::Static

Static Public Member Functions

static bool fixTopology (const te::gm::Geometry &geometry, std::vector< te::gm::Geometry * > &fixedGeometryVector, TopologyValidationError topologyError)
 This method gets a topologically inconsistent geometry and calls specific functions to fix this geometry. More...
 

Static Private Member Functions

static bool closeGeometryRing (const te::gm::Geometry &geometry, TopologyValidationError topologyError)
 This function closes an opened geometry ring. More...
 
static bool fixSelfIntersection (const te::gm::Geometry &geometry, std::vector< te::gm::Geometry * > &fixedGeometryVector, TopologyValidationError topologyError)
 This function fixes geometries with self-intersection. More...
 

Detailed Description

A static class with methods to fix geometry topology.

Definition at line 48 of file FixGeometryTopology.h.

Member Function Documentation

static bool te::gm::FixGeometryTopology::closeGeometryRing ( const te::gm::Geometry geometry,
TopologyValidationError  topologyError 
)
staticprivate

This function closes an opened geometry ring.

Parameters
geometryToFixInput Geometry to fix.
topologyErrorIf any error occurs, TopologyValidationError struct is populated with error message and geometry coordinate.
Returns
True, if the the function was executed successfully and the geometry was fixed correctly.
Note
This function is only used for Geometries of Polygon and MultiPolygon types.
static bool te::gm::FixGeometryTopology::fixSelfIntersection ( const te::gm::Geometry geometry,
std::vector< te::gm::Geometry * > &  fixedGeometryVector,
TopologyValidationError  topologyError 
)
staticprivate

This function fixes geometries with self-intersection.

Parameters
geometryToFixInput Geometry to fix.
fixedGeometryVectorA vector with the result of fixed geometries.
topologyErrorIf any error occurs, TopologyValidationError struct is populated with error message and geometry coordinate.
Returns
True, if the the function was executed successfully and the geometry was fixed correctly.
static bool te::gm::FixGeometryTopology::fixTopology ( const te::gm::Geometry geometry,
std::vector< te::gm::Geometry * > &  fixedGeometryVector,
TopologyValidationError  topologyError 
)
static

This method gets a topologically inconsistent geometry and calls specific functions to fix this geometry.

Parameters
geometryToFixInput Geometry to fix.
fixedGeometryVectorA vector with the result of fixed geometries.
topologyErrorIf any error occurs, TopologyValidationError struct is populated with error message and geometry coordinate.
Returns
True, if the function was executed successfully and the geometry was fixed correctly.

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