<div dir="ltr"><div>Hello,</div>I'm using Mapserver to output PNG 16-bits DEM raster from .HGT elevation data.<div>I'm using the below output format definition :<br></div><div><pre><code>OUTPUTFORMAT
NAME PNG16
DRIVER GDAL/PNG
MIMETYPE image/png
IMAGEMODE INT16
EXTENSION "png"
END</code></pre></div><div>However I keep on getting the standard PNG 8-bits out of mapserver.</div><div><br></div><div>The strange thing being that when I use a similar config to get GeoTiff 16-bits, I do get what I'm asking for :<br></div><br><div><table><tbody><tr><td id="m_1815879508393632445gmail-m_289219062769950651gmail-LC23"><font size="2"><span style="font-family:monospace">OUTPUTFORMAT<br> NAME GEOTIFF16<br> DRIVER GDAL/GTiff<br> MIMETYPE image/tiff<br> IMAGEMODE INT16<br> EXTENSION "tiff"<br>END<br></span></font></td></tr><tr></tr></tbody></table><table><tbody><tr><td id="m_1815879508393632445gmail-m_289219062769950651gmail-LC24"><br></td></tr><tr></tr></tbody></table>Could that be an issue with the GDAL/PNG driver ? It seems that the
GDAL/PNG driver supports only CreateCopy() and not Create(), where the
GDAL/GTiff driver supports both ... Could that be it ? I suspect the GDAL/PNG driver so I also sent my issue to the GDAL mailing list.<br></div><div><br></div><div>I can see from the mailing list that other users already had a similar issue, but there is no obvious reason or solution provided.</div><div><a href="https://lists.osgeo.org/pipermail/mapserver-users/2011-April/068428.html">https://lists.osgeo.org/pipermail/mapserver-users/2011-April/068428.html</a></div><div><a href="https://lists.osgeo.org/pipermail/mapserver-users/2012-January/071310.html">https://lists.osgeo.org/pipermail/mapserver-users/2012-January/071310.html</a></div><div></div><div><br></div><div>For information, I'm using GDAL v2.1.3 and Mapserver v7.0.1</div><div>Thanks,</div><div>Johannes<br></div><div><br></div></div>