<div dir="ltr"><div>Hello,</div><div>I have an issue with a Mapserver output format, and I'm wondering if it could be related to the associated GDAL driver.<br></div><div>Actually I'm using Mapserver to output PNG 16-bits DEM raster from .HGT elevation data.</div><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 class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC23" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><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 class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC24" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"></td></tr><tr></tr></tbody></table></div><div>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 ?</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><br></div><div><code></code><br></div></div>