turf-donuts
v0.1.0
Published
turf-donuts =============== [![build status](https://secure.travis-ci.org/Turfjs/turf-donuts.png)](http://travis-ci.org/Turfjs/turf-donuts)
Downloads
56
Readme
turf-donuts
Takes a set of overlapping polygons and returns non overlapping donuts.
###Install
npm install turf-donuts
###Parameters
|name|description| |---|---| |polygons|a FeatureCollection of overlapping polygons|
###Usage
donuts(polygons)
###Example
var donuts = require('donuts')
var fs = require('fs')
var polys = JSON.parse(fs.readFileSync('/path/to/polys.geojson'))
var donutPolys = donuts(donutsIn)
console.log(donutPolys)