geojson-rewind

WebJar for geojson-rewind

License

License

ISC
Categories

Categories

Geo Business Logic Libraries Geospatial JSON Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

geojson-rewind
Last Version

Last Version

0.3.1
Release Date

Release Date

Type

Type

jar
Description

Description

geojson-rewind
WebJar for geojson-rewind
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mapbox/geojson-rewind

Download geojson-rewind

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/geojson-rewind/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>geojson-rewind</artifactId>
    <version>0.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/geojson-rewind/
implementation 'org.webjars.npm:geojson-rewind:0.3.1'
// https://jarcasting.com/artifacts/org.webjars.npm/geojson-rewind/
implementation ("org.webjars.npm:geojson-rewind:0.3.1")
'org.webjars.npm:geojson-rewind:jar:0.3.1'
<dependency org="org.webjars.npm" name="geojson-rewind" rev="0.3.1">
  <artifact name="geojson-rewind" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='geojson-rewind', version='0.3.1')
)
libraryDependencies += "org.webjars.npm" % "geojson-rewind" % "0.3.1"
[org.webjars.npm/geojson-rewind "0.3.1"]

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.npm : mapbox__geojson-area jar [0.2.2]
org.webjars.npm : concat-stream jar [1.6.0,1.7)
org.webjars.npm : minimist jar [1.2.0]
org.webjars.npm » sharkdown jar [0.1.0,0.2)

Project Modules

There are no modules declared in this project.

Build Status

geojson-rewind

The GeoJSON specification is picky about winding order.

This helps you generate compliant Polygon and MultiPolygon geometries. Furthermore it lets you use Canvas 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

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.

org.webjars.npm

Mapbox

Mapbox is the location data platform for mobile and web applications. We're changing the way people move around cities and explore our world.

Versions

Version
0.3.1
0.1.0