An abstract class to represent an algorithm that validates an geometry.
More...
#include <AbstractValidator.h>
An abstract class to represent an algorithm that validates an geometry.
Definition at line 51 of file AbstractValidator.h.
◆ AbstractValidator()
te::gm::AbstractValidator::AbstractValidator |
( |
| ) |
|
◆ ~AbstractValidator()
virtual te::gm::AbstractValidator::~AbstractValidator |
( |
| ) |
|
|
virtualdefault |
◆ mountTopology()
This function recreates the rings topology of a polygon, distributing the given inner rings among all the given outer rings.
- Parameters
-
vecOuterRings | A vector containing all the outer rings |
vecInnerRings | A vector containing all the inner rings |
- Returns
- The geometry with the ring topology fixed
◆ setPrecision()
virtual void te::gm::AbstractValidator::setPrecision |
( |
double |
precision | ) |
|
|
virtual |
When appliable, sets the precision to be used in the validation.
- Parameters
-
precision | When appliable, the precision to be used in the validation |
◆ validate() [1/2]
Validates a geometry.
- Parameters
-
geometry | The input geometry to be validate |
- Returns
- The valdiated result geometry
◆ validate() [2/2]
Validates a geometry, an returns additional variable to inform if the geometry has been changed or not.
- Parameters
-
geometry | The input geometry to be validate |
wasChanged | output param. TRUE if the geometry has been changed. FALSE otherwise |
- Returns
- The valdiated result geometry
Reimplemented in te::gm::AddProjectedCoordinates, and te::gm::MergeCoordinates.
◆ validateCollection()
Validates a geometry collection, an returns additional variable to inform if the geometry has been changed or not.
- Parameters
-
geometry | The input geometry collection to be validate |
wasChanged | output param. TRUE if the geometry has been changed. FALSE otherwise |
- Returns
- The valdiated result geometry collection
◆ validateLine()
◆ validatePolygon()
Validates a polygon, an returns additional variable to inform if the geometry has been changed or not.
- Parameters
-
geometry | The input polygon to be validate |
wasChanged | output param. TRUE if the geometry has been changed. FALSE otherwise |
- Returns
- The valdiated result polygon
Reimplemented in te::gm::FixOrientation, and te::gm::FixNoding.
◆ m_precision
double te::gm::AbstractValidator::m_precision |
|
protected |
When appliable, the precision to be used in the validation.
Definition at line 135 of file AbstractValidator.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/geometry/validation/AbstractValidator.h