Skip to content

geos.GEOSVoronoiDiagram ⇒ GEOSGeometry

Returns the Voronoi polygons or edges of the vertices of the given geometry.

Kind: global property of geos
Returns: GEOSGeometry - A newly allocated geometry. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
gGEOSGeometrythe input geometry whose vertices will be used as sites.
envGEOSGeometrysnapping tolerance to use for improved robustness. A tolerance of 0.0 specifies that no snapping will take place. This argument can be finicky and is known to cause the algorithm to fail in several cases. If you're using tolerance and getting a failure, try setting it to 0.0.
tolerancenumberA value from the GEOSVoronoiFlags enum
flagsnumberclipping envelope for the returned diagram, automatically determined if env is NULL. The diagram will be clipped to the larger of this envelope or an envelope surrounding the sites.

geos.GEOSVoronoiDiagram_r ⇒ GEOSGeometry

Returns the Voronoi polygons or edges of the vertices of the given geometry.

Kind: global property of geos
Returns: GEOSGeometry - A newly allocated geometry. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
extHandleGEOSContextHandle_t-
gGEOSGeometrythe input geometry whose vertices will be used as sites.
envGEOSGeometrysnapping tolerance to use for improved robustness. A tolerance of 0.0 specifies that no snapping will take place. This argument can be finicky and is known to cause the algorithm to fail in several cases. If you're using tolerance and getting a failure, try setting it to 0.0.
tolerancenumberA value from the GEOSVoronoiFlags enum
flagsnumberclipping envelope for the returned diagram, automatically determined if env is NULL. The diagram will be clipped to the larger of this envelope or an envelope surrounding the sites.