poly-extractor

0.0.3 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i poly-extractor

    Weekly Downloads

    0

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • morganherlocker