turf-donuts
Advanced tools
Comparing version
{ | ||
"name": "turf-donuts", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "", | ||
@@ -24,13 +24,13 @@ "main": "index.js", | ||
"devDependencies": { | ||
"glob": "~4.0.0", | ||
"tape": "~2.13.1" | ||
"glob": "~4.0.4", | ||
"tape": "~2.13.4" | ||
}, | ||
"dependencies": { | ||
"turf-point": "~0.1.0", | ||
"turf-point": "~0.1.1", | ||
"turf-featurecollection": "~0.1.0", | ||
"turf-inside": "~0.1.1", | ||
"turf-inside": "~0.1.4", | ||
"lodash": "~2.4.1", | ||
"turf-union": "0.0.0", | ||
"turf-erase": "0.0.0" | ||
"turf-erase": "0.1.3" | ||
} | ||
} |
@@ -7,11 +7,31 @@ turf-donuts | ||
###Install | ||
```sh | ||
npm install turf-donuts | ||
``` | ||
###Parameters | ||
|name|description| | ||
|---|---| | ||
|polygons|a FeatureCollection of overlapping polygons| | ||
###Usage | ||
```js | ||
donuts(polygons) | ||
``` | ||
###Example | ||
```js | ||
var donuts = require('donuts') | ||
var js = require('fs') | ||
var fs = require('fs') | ||
var polys = JSON.parse(fs.readFileSync('/path/to/polys.geojson')) | ||
var donutPolys = donuts(donutsIn, function(err, donuts) | ||
var donutPolys = donuts(donutsIn) | ||
console.log(donutPolys) | ||
``` |
250347
0.07%36
125%+ Added
- Removed
Updated
Updated
Updated