Skip to content

Instantly share code, notes, and snippets.

@FlatMapIO
Created November 13, 2014 03:30
Show Gist options
  • Save FlatMapIO/6ff0d83d9ef85ae16b2f to your computer and use it in GitHub Desktop.
Save FlatMapIO/6ff0d83d9ef85ae16b2f to your computer and use it in GitHub Desktop.
import osm to postgis
# 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