2.0.2 • Published 3 months ago

poly2geojson v2.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
3 months ago

NPM version Build Status Dependency Status

poly2geojson

Convert Osmosis polygon filter file to GeoJSON polygon.

Install

$ npm install --save poly2geojson

Usage

var split = require('split'); // or any other line splitting stream
var poly2geojson = require('poly2geojson');

fs.createReadStream('area.poly')
  .pipe(split())
  .pipe(poly2geojson())
  .on('data', function(geojson) {
    console.log(geojson); // GeoJSON polygon
  });

License

MIT © Damian Krzeminski