-
-
Save mccraigmccraig/cdbd74e2a869ce5c46f36f5fa10a61dc to your computer and use it in GitHub Desktop.
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
## import to PostGIS | |
# import OS shapefiles | |
# import all shapefiles in the current directory into tables | |
# of the same name, with an "osbl_" prefix | |
for a in **/*.shp ; do | |
if [[ "$a" =~ "^(.*)\.shp$" ]] ; then | |
shp2pgsql -s 27700:4326 -d -I ${match}.shp osbl_${match} | psql -d clustermap2 | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment