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

  • 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
    Commented Dec 14, 2016 at 20:35

1 Answer 1


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.