1

I'm trying to show all buildings of a certain region in Switzerland using the OSM integration tools for QGIS. Using this answer, I've downloaded and imported data to my project, choosing the attributes "building", "source" and some other, cf. screenshot below:

Options for the OSM exportation to Spatialite.

The tags are basically the same whether I chose polylines or polygons under "export type". However, when importing them, I get different results: for the polygons, a part of the buildings are simply missing, and I can get their contours when I import the polylines, as you can see from this screenshot:

Polylines and polygons of OSM data.

I would like to have all buildings as polygons, and not as open lines, and am not sure if this can even be achieved. I have read through most similar forum articles but haven't found a reply concerning this very issue.

  • 1
    Look the area up in a web OSM editor directly, just to make sure the problem isn't present in the original data. – lynxlynxlynx Nov 22 '15 at 16:56
  • 1
    Missing buildings seem to be created as multipolygon relations into OSM. See for example openstreetmap.org/relation/452859. Perhaps this tool can't resolve relations. You can try to open OSM data through the GDAL OSM driver by using Add vector layer. – user30184 Nov 22 '15 at 22:08
  • Might be related to these open bug reports: hub.qgis.org/issues/8878 and hub.qgis.org/issues/12727 – AndreJ Nov 23 '15 at 7:05
  • Thanks for your reply @user30184 - I've tried importing it as a vector layer - but then, I don't have the attributes of the object as separate columns, so I can't filter the OSM map by a particular attribute, such as "building" – Cyril Nov 24 '15 at 14:24
  • You must read gdal.org/drv_osm.html and find the osmconf.ini file from your system and edit it to import the attributes which you need for filtering. – user30184 Nov 24 '15 at 14:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.