Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rrainn/shapefile-to-geojson
https://github.com/rrainn/shapefile-to-geojson
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rrainn/shapefile-to-geojson
- Owner: rrainn
- License: mit
- Created: 2022-01-16T21:56:45.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-16T22:04:33.000Z (almost 3 years ago)
- Last Synced: 2024-12-09T16:56:01.299Z (30 days ago)
- Language: TypeScript
- Size: 227 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shapefile-to-geojson
This is a simple package to convert shapefiles to GeoJSON.
## Install
```bash
npm install shapefile-to-geojson
```## Usage
```js
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](LICENSE)