turf.area
How Turf.js runs Measure Area: turf.area.
| Engine | Turf.js |
|---|---|
| Tool name | turf.area |
| Interface | js |
| Implements | Measure Area |
| Documentation | Not stated |
| Effects | modifies input: no, network: no |
| Notes | From @turf/area. |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
geojson | Feature<any> | FeatureCollection<any> | Geometry | yes | Not stated | Not stated | Not stated |
How it maps to the operation
| Operation parameter | Parameter here | Note |
|---|---|---|
layer | geojson | Not stated |
unit | Not stated | always m2. Always square metres (geodesic). |
Differences from the operation
- One total for all features of a FeatureCollection.
- 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.