Re: [gdal-dev] Uint16 geotiff

2014-09-10 Thread Jukka Rahkonen
Nikolaos Hatzopoulos gmail.com> writes: > gdal translate can not add the TIFFTAG_MINSAMPLEVALUE TIFFTAG_MAXSAMPLEVALUE > the specific tag are readonlysee:http://www.gdal.org/frmt_gtiff.html Hi, Works for me with gdal_edit.py: >c:\python27\python C:\gdal_dev\bin\gdal\python\scripts\gdal_edit.py

Re: [gdal-dev] Uint16 geotiff

2014-09-10 Thread Nikolaos Hatzopoulos
gdal translate can not add the TIFFTAG_MINSAMPLEVALUE TIFFTAG_MAXSAMPLEVALUE the specific tag are readonly see: http://www.gdal.org/frmt_gtiff.html On Wed, Sep 10, 2014 at 10:36 AM, Frank Warmerdam wrote: > Gdalwarp generally does not propagate metadata from the source(s) to the > output file.

Re: [gdal-dev] Uint16 geotiff

2014-09-10 Thread Jukka Rahkonen
Frank Warmerdam pobox.com> writes: > > > 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 t

Re: [gdal-dev] Uint16 geotiff

2014-09-10 Thread Frank Warmerdam
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. Best regards, Frank On S

[gdal-dev] Uint16 geotiff

2014-09-10 Thread Nikolaos Hatzopoulos
Dear All, so I have an RGB image in tiff format with uint16 when I use gdalwrap the TIFFTAG_MINSAMPLEVALUE and TIFFTAG_MAXSAMPLEVALUE are magicaly disappearing from the result image WHYYY??? --Nikos ___ gdal-dev mailing list gdal-dev@lists.osgeo.org ht