Last active
August 29, 2015 13:56
-
-
Save ChaosSteffen/9176854 to your computer and use it in GitHub Desktop.
Install postgis
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
brew install postgis | |
createdb -U steffen -E utf8 gis | |
psql -d gis -U steffen -f /usr/local/share/postgis/postgis.sql | |
psql -d gis -U steffen -f /usr/local/share/postgis/spatial_ref_sys.sql | |
brew install osm2pgsql --with-protobuf-c=$HOMEBREW_PREFIX/opt/protobuf-c | |
osm2pgsql -U steffen -H localhost -d gis district_of_columbia.osm | |
Source: http://lukeberndt.com/2011/postgres-postgis-on-osx-lion/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment