Spaces:
Paused
Paused
|
Download node_modules/@mapbox/geojson-rewind/README.md from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40mapbox/geojson-rewind/README.md
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@mapbox/geojson-rewind/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40mapbox/geojson-rewind/README.md
1.07 kB
| [](https://travis-ci.org/mapbox/geojson-rewind) | |
| # geojson-rewind | |
| The [GeoJSON](https://tools.ietf.org/html/rfc7946) specification is [picky about winding order](https://tools.ietf.org/html/rfc7946#section-3.1.6). | |
| This helps you generate compliant Polygon and MultiPolygon geometries. Furthermore it lets you use [Canvas](http://www.bit-101.com/blog/?p=3702) and other drawing libraries's default behavior to color the interior rings of Polygon and MultiPolygon features. | |
| ## Usage | |
| As NPM module: | |
| npm install --save @mapbox/geojson-rewind | |
| As a console utility: | |
| # install | |
| npm install -g @mapbox/geojson-rewind | |
| # use | |
| geojson-rewind foo.geojson | |
| As a browser library: [geojson-rewind.js](https://bundle.run/geojson-rewind) | |
| ## API | |
| `rewind(geojson, clockwise)` | |
| Given a GeoJSON FeatureCollection, Feature, or Geometry, return a version | |
| with inner and outer rings of different winding orders. | |
| If `clockwise` is `true`, the outer ring is clockwise, otherwise | |
| it is counterclockwise. | |