Last active
February 1, 2017 14:21
-
-
Save davidheyman/35957c91b7266b6620028ff0904144bf to your computer and use it in GitHub Desktop.
MapMaster Data Processing Commands
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
# Convert shp to topjson and simplify | |
mapshaper -i /Volumes/Storage/Box\ Sync/MapMaster\ data/World/Physical\ Environment/Vector/005_Water_Resources_Vulnerability/005_Water_Resources_Vulnerability.shp -simplify 5% -o data/world/005_water_resources.json format=topojson | |
# Load shapefiles in subdirectories into PostGIS | |
for f in *; do cd $f; for g in *.shp; do shp2pgsql -I -s 4326 $g `basename $g .shp` | psql -d mapmaster; cd ../; done; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment