I am trying to merge two rasters (.tif) in QGIS (Raster > Miscellaneous > Merge), but only one of the rasters is kept in the output.
I need a 3rd rasters with the sum of the values from both input rasters.
So to 'Place each input into a separate band' is not an option. The rasters overlap completely and have the same resolution. The values of each cell are 0 or 1. The third raster should have values of:
- Zero, when a cell from both rasters have a value of zero
- One, when one cell has value 1 in one raster and 0 in the other
- Two, when a cell from bothe rasters have a value of 1
When I try to merge as described above, the resulting raster is exactly the same to one of the preceding rasters.
I've already tried the to re-saved my .tifs but with a lower resolution (as suggested here) with no success. I'm running QGIS 3.0.1 in Windows 10.