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
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.
(image courtesy: Markus Neteler)
(image courtesy: Vaclav Petras)
-
Hi, does this take the topography into account for computing the shade?– LouisCommented Dec 5, 2023 at 15:06
-
Yes it does. Above surface includes the topography and the buildings, put together (I am not the author).– markusNCommented Dec 6, 2023 at 16:25
-
-
1I can't install r.sun.hourly, can you help me here : gis.stackexchange.com/questions/471645/… ? thank you– LouisCommented Dec 15, 2023 at 18:52