poly-extractor

v0.0.3
takes valid geojson multipolygons and denormalizes them into polygons for use with arcgis js
geo arcgis geojson polygon multipolygon

poly-extractor

extracts all of the polygons out of a geojson FeatureCollection

###Install

npm install poly-extractor

###Usage

var extractor = require('poly-extractor')

var fc = JSON.parse(fs.readFileSync('./FC.geojson'))
res = extractor(fc)
fs.writeFileSync('./polys.geojson', JSON.stringify(res))

###Test

npm test
npm i poly-extractor

Metadata

  • MIT
  • Whatever
  • morganherlocker
  • released 3/3/2014

Downloads

Maintainers