In QGIS, I have a layer with polygon outlines of buildings and a height map over the area, I would like to extract the height of the buildings from the map and insert it into the attribute of the appropriate polygons, so I can extrude them into that height. The heights are not in the attribute table already.

I have tried using the "Sample Raster Values" plugin, but it crashes immediately and I have been unable to find other solutions.

  • Have you tried add raster values to features?
    – Erik
    Commented Jun 2, 2022 at 10:04

1 Answer 1


The Zonal Statistics plugin (Processing) did the job. I first took the height of the surface scan and, then applied the plugin again to the tempary layer created and then apple the plugin to the tarrain scan. Then I subtracted the values to get the height above ground.

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.