GEOS  3.9.1dev
Public Member Functions | List of all members
geos::operation::valid::MakeValid Class Reference

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::Geometrybuild (const geom::Geometry *geom)
 Return a valid version of the input geometry. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

geos::operation::valid::MakeValid::MakeValid ( )
default

Create a MakeValid object.

geos::operation::valid::MakeValid::~MakeValid ( )
default

Member Function Documentation

std::unique_ptr<geom::Geometry> geos::operation::valid::MakeValid::build ( const geom::Geometry geom)

Return a valid version of the input geometry.


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