geojson_rewind

Crates.iogeojson_rewind
lib.rsgeojson_rewind
version0.2.0
sourcesrc
created_at2018-08-25 18:53:13.90556
updated_at2018-08-25 18:53:13.90556
descriptionEnforce polygon ring winding order for GeoJSON
homepagehttps://github.com/ingalls/geojson-rewind-rs
repositoryhttps://github.com/ingalls/geojson-rewind-rs
max_upload_size
id81415
size7,804
Nick (ingalls)

documentation

README

GeoJSON-Rewind

Enforce polygon ring winding order for GeoJSON

Rust port of @mapbox/geojson-rewind

Build Status

The GeoJSON specification is picky about winding order.

This helps you generate compliant Polygon and MultiPolygon geometries.

API

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.

Commit count: 10

cargo fmt