| Crates.io | geojson_rewind |
| lib.rs | geojson_rewind |
| version | 0.2.0 |
| created_at | 2018-08-25 18:53:13.90556+00 |
| updated_at | 2018-08-25 18:53:13.90556+00 |
| description | Enforce polygon ring winding order for GeoJSON |
| homepage | https://github.com/ingalls/geojson-rewind-rs |
| repository | https://github.com/ingalls/geojson-rewind-rs |
| max_upload_size | |
| id | 81415 |
| size | 7,804 |
Enforce polygon ring winding order for GeoJSON
Rust port of @mapbox/geojson-rewind
The GeoJSON specification is picky about winding order.
This helps you generate compliant Polygon and MultiPolygon geometries.
rewind(geojson: &mut geojson::Feature, outer: bool)
Given a GeoJSON FeatureCollection, Feature, or Geometry, return a version with inner and outer rings of different winding orders.
If outer is true, the outer ring is clockwise, otherwise it is counterclockwise.