turf.voronoi
How Turf.js runs Voronoi Polygons: turf.voronoi.
| Engine | Turf.js |
|---|---|
| Tool name | turf.voronoi |
| Interface | js |
| Implements | Voronoi Polygons |
| Documentation | Not stated |
| Effects | modifies input: no, network: no |
| Notes | From @turf/voronoi. |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
points | FeatureCollection<Point> | yes | Not stated | Not stated | Not stated |
options | { bbox?: BBox; } | no | Not stated | Not stated | Not stated |
options.bbox | BBox | no | Not stated | Not stated | field of options |
How it maps to the operation
| Operation parameter | Parameter here | Note |
|---|---|---|
layer | points | Not stated |
Differences from the operation
- options.bbox gives the extent (default the whole world: -180, -85, 180, 85).
- Turf works on GeoJSON in longitude/latitude (WGS 84); data in another CRS must be reprojected first.
Harvested by the turf harvester from engine version
7.4.0. Names can change when an engine is harvested again.