<p dir="ltr">Gdalwarp generally does not propagate metadata from the source(s) to the output file. One approach is to use gdal_translate after to re-add desired metadata. Alternatively you could precreate the output file and populate it with metadata. I often do this part in python. </p>
<p dir="ltr">Best regards,<br>
Frank</p>
<div class="gmail_quote">On Sep 10, 2014 10:17 AM, "Nikolaos Hatzopoulos" <<a href="mailto:nhatzop@gmail.com">nhatzop@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Dear All,<br><br></div>so I have an RGB image in tiff format with uint16<br></div>when I use gdalwrap the TIFFTAG_MINSAMPLEVALUE<br></div>and TIFFTAG_MAXSAMPLEVALUE are magicaly disappearing<br>from the result image<br><br></div>WHYYY???<br><br></div>--Nikos<br></div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div>