<div dir="ltr"><div>gdal translate can not add the TIFFTAG_MINSAMPLEVALUE TIFFTAG_MAXSAMPLEVALUE<br></div>the specific tag are readonly<br><br>see:<br><a href="http://www.gdal.org/frmt_gtiff.html" target="_blank">http://www.gdal.org/frmt_gtiff.html</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 10, 2014 at 10:36 AM, Frank Warmerdam <span dir="ltr"><<a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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"><div><div class="h5">On Sep 10, 2014 10:17 AM, "Nikolaos Hatzopoulos" <<a href="mailto:nhatzop@gmail.com" target="_blank">nhatzop@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">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>
</blockquote></div><br></div>