Streaming Shapefile reader
This is a very early work in progress. Come back later.
npm install shapefile-reader
const fs = require('fs')
const shapefileReader = require('shapefile-reader')
shapefileReader({
shapefile: fs.createReadStream('some-shapefile.shp')
})
.on('header', function (header) {
// Most interesting is probably header.boundingBox and header.shapeType
})
- ISC
- Test Shapefiles courtesy of Mike Bostock's
shapefile
module