turf.simplify
How Turf.js runs Simplify: turf.simplify.
| Engine | Turf.js |
|---|---|
| Tool name | turf.simplify |
| Interface | js |
| Implements | Simplify |
| Documentation | Not stated |
| Effects | modifies input: no, network: no |
| Notes | From @turf/simplify. |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
geojson | T | yes | Not stated | Not stated | Not stated |
options | { tolerance?: number; highQuality?: boolean; mutate?: boolean; } | no | Not stated | Not stated | Not stated |
options.tolerance | number | no | Not stated | Not stated | field of options |
options.highQuality | boolean | no | Not stated | Not stated | field of options |
options.mutate | boolean | no | Not stated | Not stated | field of options |
How it maps to the operation
| Operation parameter | Parameter here | Note |
|---|---|---|
layer | geojson | Not stated |
tolerance | options.tolerance | Not stated |
unit | Not stated | always crs-units. The tolerance is in degrees. |
preserve_topology | Not stated | always no |
Differences from the operation
- tolerance defaults to 1 (degree); highQuality uses the slower full Douglas-Peucker without radial-distance prefiltering.
- 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.