Created
July 12, 2023 21:09
-
-
Save jkeefe/583c051b27ffe1b76fbafbb184bac3cd to your computer and use it in GitHub Desktop.
Importing mapshaper in ES6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// npm install mapshaper --save | |
import mapshaper from 'mapshaper' | |
// Example: converting a directory of Shapefiles to GeoJSON | |
mapshaper.runCommands('-i shapefiles/*.shp -o geojson/ format=geojson'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment