#include <Validation.h>
Definition at line 61 of file Validation.h.
◆ CheckValidity()
It check geometry validity using GEOS.
- Parameters
-
- Returns
- True if geometry is valid.
◆ MakeValid() [1/2]
Apply several fixes to a geometry to ensure that it will be made valid.
It applies the following fixes: 1 - Removes all the repeated consecutive coordidates 2 - Add perpendicular points that are within the tolerance to each analysed segment 3 - We snap the coordinates to ensure that any "similar" coordinate is now equal 4 - To avoid the discard of rings in geos polygonize function, we must ensure that we removed all the collapsed segments 5 - Finally we applies a polygonizer to recreate the geometry and ensure that it is now consistent
- Parameters
-
- Returns
- True if geometry is valid.
◆ MakeValid() [2/2]
◆ Validate()
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/geometry/Validation.h