idris-ensure-clockwise
For when your geojson polygons cover the whole projection with a hole in the shape of your polygon. Happened to me using OSM data with D3.
JS implementation of Shoelace formula taken from kodkods answer to this question
No dependencies
Install
$ npm install idris-ensure-clockwise
Usage
Takes a GeoJSON collection, fixes the Polygons and MultiPolygons that are not clockwise and returns a new collection
var ensureClockwise = require('idris-ensure-clockwise')
ensureClockwise(GeoJSON_collection, function(fixed_GeoJSON_collection) {
})