GEOS
3.9.0dev

Creates an areal geometry formed by the constituent linework of given geometry. More...
#include <BuildArea.h>
Public Member Functions  
BuildArea ()=default  
Create a BuildArea object.  
std::unique_ptr< geom::Geometry >  build (const geom::Geometry *geom) 
Return the area built fromthe constituent linework of the input geometry.  
Creates an areal geometry formed by the constituent linework of given geometry.
The return type can be a Polygon or MultiPolygon, depending on input. If the input lineworks do not form polygons NULL is returned. The inputs can be LINESTRINGS, MULTILINESTRINGS, POLYGONS, MULTIPOLYGONS, and GeometryCollections.
This algorithm will assume all inner geometries represent holes
This is the equivalent of the PostGIS ST_BuildArea() function.