On 07/27/2011 04:16 PM, Stephen Mather wrote:
Hi All,
I'm using gdal_translate (version 1.6.3 on Ubuntu) with a scale
factor to stretch float values to 16-bit integer values. It works
fine with tif output, but with PNG it stretches the values to 8-bit:
gdal_translate -of PNG -scale 0 1550 0 65535 N2140615.txt N2140615.png
Try gdal_translate -of PNG -ot UInt16 -scale 0 1550 0 65535 N2140615.txt
N2140615.png
Is this a known issue and/or has it been fixed with more recent
versions? I know I had trouble with this with an MS4W release as well.
Thanks,
Steve
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
-marius
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev