GEOS
3.9.1dev
|
The function attempts to create a valid representation of a given invalid geometry without losing any of the input vertices. More...
#include <MakeValid.h>
Public Member Functions | |
MakeValid ()=default | |
Create a MakeValid object. More... | |
~MakeValid ()=default | |
std::unique_ptr< geom::Geometry > | build (const geom::Geometry *geom) |
Return a valid version of the input geometry. More... | |
The function attempts to create a valid representation of a given invalid geometry without losing any of the input vertices.
Already-valid geometries are returned without further intervention.
Supported inputs are: POINTS, MULTIPOINTS, LINESTRINGS, MULTILINESTRINGS, POLYGONS, MULTIPOLYGONS and GEOMETRYCOLLECTIONS containing any mix of them.
In case of full or partial dimensional collapses, the output geometry may be a collection of lower-to-equal dimension geometries or a geometry of lower dimension.
Single polygons may become multi-geometries in case of self-intersections.
Definition at line 56 of file MakeValid.h.
|
default |
Create a MakeValid object.
|
default |
std::unique_ptr<geom::Geometry> geos::operation::valid::MakeValid::build | ( | const geom::Geometry * | geom | ) |
Return a valid version of the input geometry.