PostGIS
2.5.7dev-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. |
Definition at line 1872 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 ST_Voronoi(), test_lwgeom_voronoi_diagram(), and test_lwgeom_voronoi_diagram_custom_envelope().