<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 07/27/2011 04:16 PM, Stephen Mather wrote:
<blockquote
cite="mid:CAPkJWLXnSTwQT4NRvF6O2ocSb=+n0TvksRTkAQEt7gY+S6tuew@mail.gmail.com"
type="cite">Hi All,<br>
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:<br>
<br>
gdal_translate -of PNG -scale 0 1550 0 65535 N2140615.txt
N2140615.png<br>
</blockquote>
<br>
Try gdal_translate -of PNG -ot UInt16 -scale 0 1550 0 65535
N2140615.txt N2140615.png<br>
<br>
<blockquote
cite="mid:CAPkJWLXnSTwQT4NRvF6O2ocSb=+n0TvksRTkAQEt7gY+S6tuew@mail.gmail.com"
type="cite"><br>
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.<br>
<br>
Thanks,<br>
Steve<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
-marius<br>
</body>
</html>