2

When using the 'Merge' tool in QGIS, which raster value does it choose when there are overlaps between the raster?

Alex
  • 53
  • 1
  • 5
  • Welcome to gis.stackexchange! Please note that a good question on this site is expected to show some degree of research on your part, i.e. what you have tried and - if applicable - code so far. For more info, you can check our [faq]. – underdark Dec 14 '16 at 20:35

1 Answers1

7

If you're using the standard gdal_merge, later rasters overwrite earlier rasters (as in, the order they appear in the command line).

From the usage document (emphasis mine)

This utility will automatically mosaic a set of images. All the images must be in the same coordinate system and have a matching number of bands, but they may be overlapping, and at different resolutions. In areas of overlap, the last image will be copied over earlier ones.

If you want a particular raster to take precedence, you need to edit the command line and change the order yourself (you can use the pencil icon to do this).

If you want more control, e.g. blending/interpolating overlaps automatically (feathering) or taking the maximum pixel value from multiple rasters at a particular overlapping cell, you can use SAGA GIS - see this answer

Steven Kay
  • 20,405
  • 5
  • 31
  • 82