Skip to content

Instantly share code, notes, and snippets.

@jczaplew
Created November 26, 2013 00:08
Show Gist options
  • Save jczaplew/7651192 to your computer and use it in GitHub Desktop.
Save jczaplew/7651192 to your computer and use it in GitHub Desktop.
Bulk import SHP into PostGIS
#! I need this for my broken version of Postgres.app
#!export DYLD_LIBRARY_PATH=/Applications/Postgres.app/Contents/MacOS/lib/
for i in *.shp; do
shp2pgsql -s 4326 $i | psql -h localhost -U you -d database
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment