poly2geojson

2.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.2
    1
  • 2.0.1
    2
  • 2.0.0
    0
  • 1.0.0
    1
  • 0.0.0
    0

Package Sidebar

Install

npm i poly2geojson

Weekly Downloads

2

Version

2.0.2

License

MIT

Unpacked Size

3.28 kB

Total Files

4

Last publish

Collaborators

  • pirxpilot