Back to Browse

Customizing OSM map with osm2postgresql & QGIS

5.9K views
May 18, 2011
10:28

Please note: this is the original video. The following is identical (but twice as fast: double speed): http://www.youtube.com/watch?v=NBBYtH2svw0 Discover how to customize your own map with openstreetmap data with a few cliks! The data was imported to a new postgresql/postgis database with a single line command using my osm2postgresql bash script. This works with qgis 1.6 (you need qgis 1.7 if you want both rule-based rendering AND symbol levels). For my .qml stylesheet for ways, I use map units (and I meant them to be meters: a road can be 30 meter wide, not 30 degrees!). In the middle of the video QGIS seems slow then there is an orange screen, because I made a mistake: On this database, I have latitude-longitude data [1] ... and I forgot to check the "reproject on the fly" checkbox in QGIS, so in the video you see QGIS making some time to draw roads of 30 degrees ! (hence the orange screen). [1] Note that osm2postgresql can reproject when importing an .osm file; this improves rendering performance. You should use it! More info on how to do it yourself here: http://www.qgis.org/wiki/Using_OpenStreetMap_data https://sourceforge.net/projects/osm2postgresql/ http://wiki.openstreetmap.org/wiki/Osm2postgresql Map data (c) OpenStreetMap contributors, CC-BY-SA. Map and video made by Mayeul KAUFFMANN with QGIS, osm2postgresql and gtk-recordmydesktop.

Download

1 formats

Video Formats

360pmp415.9 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Customizing OSM map with osm2postgresql & QGIS | NatokHD