3

I need to create image-raster with shadow of relief and shadow of buildings in one. I know how to create shadow of relief but how i can create shadow of buildings with r.sunmask? I dont know how from 2D polygon layer of buildings create shadow of complete buildings.

1 Answer 1

5

You need to run r.sun, not r.sunmask for this task. There are also convenient GRASS GIS addons to run it in hourly or daily mode.

You first need to extrude your buildings with v.extrude, then run the solar computation. See for extrusion "Extrude 2D polygons to 3D" and for a shadow example here.

enter image description here

(image courtesy: Markus Neteler)

enter image description here

(image courtesy: Vaclav Petras)

4
  • Hi, does this take the topography into account for computing the shade?
    – Louis
    Commented Dec 5, 2023 at 15:06
  • Yes it does. Above surface includes the topography and the buildings, put together (I am not the author).
    – markusN
    Commented Dec 6, 2023 at 16:25
  • Thanks for answergin @markusN
    – Louis
    Commented Dec 15, 2023 at 17:49
  • 1
    I can't install r.sun.hourly, can you help me here : gis.stackexchange.com/questions/471645/… ? thank you
    – Louis
    Commented Dec 15, 2023 at 18:52

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.