Skip to content

Instantly share code, notes, and snippets.

View markjd84's full-sized avatar

Mark Dimond markjd84

  • Integrated Transport Planning Ltd and University of Nottingham
  • Nottingham
  • 13:42 (UTC +01:00)
View GitHub Profile
@springmeyer
springmeyer / osm.pbf to postgis
Created November 1, 2010 07:23
import a pbf file into postgis from geofabrik using osmosis and osm2pgsql
# note: there is work afoot to load pbf directly with osm2pgsql
# http://lists.openstreetmap.org/pipermail/dev/2010-October/020953.html
# but for now osmosis >= 0.37 works best
# install java/osmosis if you don't already have it
sudo apt-get install sun-java6-jre
wget http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-0.37.zip
unzip osmosis-0.37.zip
cd osmosis-0.37
chmod +x bin/osmosis