NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Thank you for response to this question (problems were associated with QGIS plugin failing with 64-bit OSM IDs).

Bearing in mind that this is something I hope to help other communities learn (who are not from a GIS background), which of the alternative methods would you recommend to enable us to visualise OSM data in QGIS?

asked 30 Mar '13, 16:06

paulgeorgie's gravatar image

paulgeorgie
71225
accept rate: 0%

converted 30 Mar '13, 16:11

SK53's gravatar image

SK53 ♦
28.1k48268433


I think there are three broad options for visualising and manipulating OSM data in QGIS:

  1. Directly with OSM XML files (i.e., using the very dated plugin). This still works if all ids are in the 32-bit domain. A suitable workaround is to load the XML into JOSM, copy everything into a new layer (therefore resetting all ids) and save this as an OSM file for loading into QGIS. Apart from the dangers of importing the same data again, this is very simple and requires no additional skills to be learnt. Once loaded in QGIS I would suggest creating shapefiles from the OSM layers for further work.
  2. Use prebuilt ESRI Shapefiles. The files provided by Geofabrik are suitable for most purposes, but if you need specific tags can be a little frustrating.
  3. Import OSM data into a Postgres database. The most useful way is using the osm2pgsql routine which creates tables with a rich set of attributes. As osm2pgsql supports hstore all tags are ultimately accessible. Additionally the base tables can be extended to add additional geometry columns for other projections of interest (such as OSGB). Postgres has a simple installation program on windows, and osm2pgsql and QGIS can be used with little knowledge of Postgres.

Personally I have found the latter method by far the most flexible, as it lends itself more readily to the creating multiple layers both for analysis and visualisation which is QGIS forte. It also provides the best method for reusing QGIS projects and refreshing the data.

permanent link

answered 30 Mar '13, 16:34

SK53's gravatar image

SK53 ♦
28.1k48268433
accept rate: 22%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×67
×22
×8

question asked: 30 Mar '13, 16:06

question was seen: 6,288 times

last updated: 30 Mar '13, 16:34

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum