Tuesday, 16 May 2017

dem - Setting the same min/max for multiple raster layers QGIS


I have 268 hgt-files from Viewfinder Panorama that I'm using to create an elevation model, but each of the files has its own min and max-value in Layer Properties - Symbology - Band Rendering.


Currently it looks like this:


Screenshot from QGIS


I found I can set the min and max of each layer manually, to get an uniform scale, but this is a hassle for all 268 layers. So I was wondering if I'm missing an option somewhere, or if im doing something completely crazy?



Answer



You could build a virtual raster. Go to Raster - Miscellaneous - Build virtual raster, select all rasters as input, uncheck "Place each input file in a separate band":


enter image description here


Then change symbology of the virtual raster.


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...