turf.polygonize
How Turf.js runs Lines To Polygons: turf.polygonize.
| Engine | Turf.js |
|---|---|
| Tool name | turf.polygonize |
| Interface | js |
| Implements | Lines To Polygons |
| Documentation | Not stated |
| Effects | modifies input: no, network: no |
| Notes | From @turf/polygonize. |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
geoJson | Feature<T> | FeatureCollection<T> | T | yes | Not stated | Not stated | Not stated |
How it maps to the operation
| Operation parameter | Parameter here | Note |
|---|---|---|
layer | geoJson | Not stated |
Differences from the operation
- 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.