I have two geoTIFFS. The files cover the exact same area, both have 1 band(Block = 256x256) and both have a no data value of 0. They also have the same coordinate system.
I want to merge the files into a single tiff with two bands.
I tried this command:
gdal_merge.bat -n 0 -a_nodata 0 -separate -of GTiff -o merged.tif first.tif second.tif
But I kept getting a Memory error. After researching online, I then used the same command with the -createonly flag:
gdal_merge.bat -createonly -n 0 -a_nodata 0 -separate -of GTiff -o merged.tif first.tif second.tif
Followed By:
gdalwarp --config GDAL_CACHEMAX 500 -wm 500 merged.tiff mergedFINAL.tiff
However opening mergedFINAL.tiff in qgis just yields a blank screen. Can anyone see something Im doing wrong and offer me some advice?