geojson_rewind 0.2.0

Enforce polygon ring winding order for GeoJSON
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 7.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 122.6 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 19s Average build duration of successful builds.
  • all releases: 19s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • ingalls/geojson-rewind-rs
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ingalls

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.