[gdal-dev] Uint16 geotiff

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Wed Sep 10 23:32:24 PDT 2014


Nikolaos Hatzopoulos <nhatzop <at> 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 -mo
"TIFFTAG_MAXSAMPLEVALUE=200" test_1000by1000.tif

gdalinfo test_1000by1000.tif
...
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_MAXSAMPLEVALUE=200
...

-Jukka Rahkonen-




More information about the gdal-dev mailing list