<div dir="ltr">Hi - I'm having difficulties with warping or merging overlapping single band gtiffs (where the input tifs bounding box overlap)<div><br></div><div>When using gdalwarp:</div><div><br></div><div>I achieve the desired output extent of both tifs however, the data range of the output tif is 0 to 0 (min and max values are both 0).</div><div><br></div><div>It appears to recognise the nodata value as the extent of both tifs are in the gdalwarp output, it's just the data range is incorrect. </div><div><br></div><div>When I use gdalmerge:</div><div><br></div><div>In the documentation it says '<span style="color:rgb(0,0,0);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-size:12px"> </span><span style="color:rgb(0,0,0);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-size:12px">In areas of overlap, the last image will be copied over earlier ones.' </span></div><div><span style="color:rgb(0,0,0);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-size:12px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-size:12px">Is it possible to overwrite the nodata values in the earlier image with</span><span style="color:rgb(0,0,0);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-size:12px"> real data values present in the last image?</span></div><div><span style="color:rgb(0,0,0);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-size:12px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;font-size:12px">Because of this, the output gtiff extent from gdalmerge honours the first gtiff bounding box and masks any real data from other tifs used within the program. </span></div><div><br></div><div><font color="#000000" face="Lucida Grande, Verdana, Geneva, Arial, sans-serif"><span style="font-size:12px">Apologies, pretty difficult to explain but created a quick visual to show the outputs here | <a href="https://www.dropbox.com/s/0bfbi2ssbr4enjn/overlapping_single_band_geotiffs.png?dl=0">https://www.dropbox.com/s/0bfbi2ssbr4enjn/overlapping_single_band_geotiffs.png?dl=0</a></span></font></div><div><font color="#000000" face="Lucida Grande, Verdana, Geneva, Arial, sans-serif"><span style="font-size:12px"><br></span></font></div><div><font color="#000000" face="Lucida Grande, Verdana, Geneva, Arial, sans-serif"><span style="font-size:12px">Also example data is here which should hopefully replicate the issue | <a href="https://www.dropbox.com/s/o623ao42zi3kiun/gdal_dev.zip?dl=0">https://www.dropbox.com/s/o623ao42zi3kiun/gdal_dev.zip?dl=0</a></span></font></div><div><font color="#000000" face="Lucida Grande, Verdana, Geneva, Arial, sans-serif"><span style="font-size:12px"> </span></font></div><div><font color="#000000" face="Lucida Grande, Verdana, Geneva, Arial, sans-serif"><span style="font-size:12px">Thanks,</span></font></div><div><font color="#000000" face="Lucida Grande, Verdana, Geneva, Arial, sans-serif"><span style="font-size:12px"><br></span></font></div><div><font color="#000000" face="Lucida Grande, Verdana, Geneva, Arial, sans-serif"><span style="font-size:12px">Gareth </span></font></div><div><br></div><div><br></div><div><br></div><div><br><div><br></div><div><br></div></div></div>