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().
Param | Type | Description |
---|---|---|
g | GEOSGeometry | the input geometry whose vertices will be used as sites. |
env | GEOSGeometry | snapping 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. |
tolerance | number | A value from the GEOSVoronoiFlags enum |
flags | number | clipping 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().
Param | Type | Description |
---|---|---|
extHandle | GEOSContextHandle_t | - |
g | GEOSGeometry | the input geometry whose vertices will be used as sites. |
env | GEOSGeometry | snapping 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. |
tolerance | number | A value from the GEOSVoronoiFlags enum |
flags | number | clipping 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. |