[gdal-dev] GDAL png driver

Johannes Paul johannespaul92 at gmail.com
Wed Feb 5 01:08:42 PST 2020


Hello,
I have an issue with a Mapserver output format, and I'm wondering if it
could be related to the associated GDAL driver.
Actually I'm using Mapserver to output PNG 16-bits DEM raster from .HGT
elevation data.
I'm using the below output format definition :

OUTPUTFORMAT
  NAME PNG16
  DRIVER GDAL/PNG
  MIMETYPE image/png
  IMAGEMODE INT16
  EXTENSION "png"
END

However I keep on getting the standard PNG 8-bits out of mapserver.

The strange thing being that when I use a similar config to get GeoTiff
16-bits, I do get what I'm asking for :

OUTPUTFORMAT
  NAME GEOTIFF16
  DRIVER GDAL/GTiff
  MIMETYPE image/tiff
  IMAGEMODE INT16
  EXTENSION "tiff"
END
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 ?

For information, I'm using GDAL v2.1.3 and Mapserver v7.0.1
Thanks,
Johannes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200205/ce1c7b4b/attachment.html>


More information about the gdal-dev mailing list