Created
October 12, 2012 22:43
-
-
Save marcellobenigno/3882066 to your computer and use it in GitHub Desktop.
Load multiple shapefiles into PostGIS
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
#!/bin/bash | |
#change the SRID if necessary | |
for f in *.shp | |
do | |
shp2pgsql -s 29185 $f `basename $f .shp` > `basename $f .shp`.sql | |
done | |
#Source: http://gis.stackexchange.com/questions/7803/bulk-load-multiple-shapefiles-into-postgis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment