shapefile-to-geojson
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

shapefile-to-geojson

This is a simple package to convert shapefiles to GeoJSON.

Install

npm install shapefile-to-geojson

Usage

const shapefileToGeojson = require("shapefile-to-geojson");

const geoJSON = await shapefileToGeojson.parseFiles("./path/to/shapefile.shp", "./path/to/dbf.dbf");

const geoJSON = await shapefileToGeojson.parseFolder("./path/to/files"); // This directory should include 1 `shp` & 1 `dbf` file

License

MIT License

Package Sidebar

Install

npm i shapefile-to-geojson

Weekly Downloads

105

Version

1.0.1

License

MIT

Unpacked Size

23.9 kB

Total Files

6

Last publish

Collaborators

  • fishcharlie