-
-
Save tdaubs/884ebcf1dc0433d2340d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #geojson conversion | |
| function shp2geojson() { | |
| ogr2ogr -f GeoJSON -t_srs crs:84 "$1.geojson" "$1.shp" | |
| } | |
| #unzip all files in a directory | |
| for var in *.zip; do unzip "$var";done | |
| #convert all shapefiles | |
| for var in *.shp; do shp2geojson ${var%\.*}; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment