I'am trying to import large OSM data to QGis, namely all buildings polygons in Czech Republic. Finally, I imported polygons using PostGIS layer, because everything else had strong issues. See my previous question: Importing large OSM data to QGis failed (using QuickOSM, SpatialLite layer or add vector layer).

Now, I have another problem: some attributes (tags) are missing - probably the attributes, that are placed in relations.

Is there method, how to apply OSM relation tags to it's sub polygons and import them to QGis?

Example: this building (relation): openstreetmap.org/relation/3679169 has interesting tag "building:levels" but PostGIS layer in QGis contains only polygon without it.

  • 2
    Did you try to add the requested tags to your default.style file before starting the osm2pgsql import?
    – AndreJ
    Commented Sep 5, 2017 at 14:40
  • No I didn't. But it looks like solution! I didn't have this idea, because ".style" file extension looked like something graphic-related (green color for vegetation, etc...). I'am rigid programmer :-). I will try this and place answer... Thank You. Commented Sep 6, 2017 at 7:46

1 Answer 1


As AndreJ said in question comments above, I added tags to "default.style" file and it did the job. Thank You again!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.