Monday 30 October 2017

What method does QGIS Merge Rasters tool use?


I am trying to merge rasters in QGIS and want to set a priority order for merging so that the values from the highest priority raster are used in overlap areas (the “FIRST” merge/mosaic method, I believe).


Does anyone know what the merge method is for the QGIS tool under Vector -> Miscellaneous -> Merge? I have not found documentation for the method, but it is clear that it is combining the files in some way other than just taking values from the first loaded raster.


Is the SAGA Mosaic Raster Layers my best alternative?



Answer



For merging rasters, QGIS use the script gdal_merge (Python script)


gdal_merge.py raster1.tif raster2.tif raster3.tif -o merged.tif

Merge method is for the QGIS tool under Vector -> Miscellaneous -> Merge merge vector layers, as its name indicates


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