Created
November 13, 2014 03:30
-
-
Save FlatMapIO/6ff0d83d9ef85ae16b2f to your computer and use it in GitHub Desktop.
import osm to 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
# prepare | |
psql -U postgres -d osm -f /path-to-psql/share/contrib/postgis-2.1/postgis.sql | |
psql -U postgres -d osm -f /path-to/osmosis/script/pgsnapshot_schema_0.6.sql | |
# import to pgsql | |
osmosis --read-pbf file=./xxx-latest.osm.pbf --wp host=localhost database=osm user=postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment