osm-object-stream
Stream for parsing and returning OSM objects from an OSC or OSM data stream
Last updated a year ago by vitalimmm .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install osm-object-stream 
SYNC missed versions from official npm registry.

osm-object-stream

Node.js module for a stream of osc or osm files (OpenStreetMap change file), parsing the given XML, and writing objects representing OSM entities

Usage Example

const OsmObjectStream = require('osm-object-stream');
const fs = require('fs');

const osmFileStream = fs.createReadStream('osm/file/path');
const osmObjectStream = new OsmObjectStream();

osmFileStream.pipe(osmObjectStream);
osmObjectStream.on('data', (osmEntitiesBulk) => {
    console.log(osmEntitiesBulk);
});

Current Tags

  • 1.0.3                                ...           latest (a year ago)

4 Versions

  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |