Convert shapefile zip archives to streaming GeoJSON using
gdal and
JSONStream.
Uses the gdal native addon for node.js. No compilation required on most platforms as pre-compiled binaries will be downloaded automatically when you run npm install shp2json.
example
shp2json.js
var toJSON = require('shp2json');toJSON(process.stdin).pipe(process.stdout);process.stdin.resume();// ortoJSON.fromShpFile('./data/from_files/shape.shp').pipe(process.stdout);