PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
LWGEOM* lwgeom_voronoi_diagram | ( | const LWGEOM * | g, |
const GBOX * | env, | ||
double | tolerance, | ||
int | output_edges | ||
) |
Take vertices of a geometry and build the Voronoi diagram.
g | the input geometry |
env | an optional envelope for clipping the results |
tolerance | an optional snapping tolerance for improved robustness |
output_edges | if non-zero the result will be a MULTILINESTRING, otherwise it'll be a COLLECTION of polygons. |
Requires GEOS-3.5.0 or higher
Definition at line 2101 of file liblwgeom/lwgeom_geos.c.
References COLLECTIONTYPE, GBOX2GEOS(), GEOS2LWGEOM(), LW_FALSE, lwcollection_as_lwgeom(), lwcollection_construct_empty(), lwerror(), lwgeom_count_vertices(), lwgeom_geos_errmsg, lwgeom_geos_error(), lwgeom_get_geos_coordseq_2d(), lwgeom_get_srid(), lwgeom_set_srid(), and lwnotice().
Referenced by assert_empty_diagram(), ST_Voronoi(), test_lwgeom_voronoi_diagram(), and test_lwgeom_voronoi_diagram_custom_envelope().