shapefile-reader

Streaming Shapefile reader

Usage no npm install needed!

<script type="module">
  import shapefileReader from 'https://cdn.skypack.dev/shapefile-reader';
</script>

README

shapefile-reader - WIP

Streaming Shapefile reader

This is a very early work in progress. Come back later.

Installation

npm install shapefile-reader

Usage

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
})

License