GeoJSON utilities
geojson_utilsValidate GeoJSON structure, simplify lines and rings, or convert lat/lng points to a FeatureCollection for accurate geospatial processing.
Instructions
Validate GeoJSON (structure, coordinate ranges, closed rings), simplify lines and polygon rings (altitude preserved), or convert {lat,lng} points to a FeatureCollection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | No | Points for to_feature_collection (1-1000) | |
| geojson | No | GeoJSON object with [lng, lat] coordinates, for validate and simplify (at most 2000000 characters as JSON) | |
| operation | Yes | validate = RFC 7946 structure and coordinate ranges; simplify = Douglas-Peucker on lines and rings; to_feature_collection = points to Point features | |
| toleranceKm | No | Simplification tolerance in km (default 0.05 = 50 m) |