Wednesday, 24 February 2016

raster - How to create shadows of buildings with r.sunmask?


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.



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.


enter image description here


(image courtesy: Markus Neteler)


enter image description here


(image courtesy: Vaclav Petras)


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...