gina-alaska / epscor-mapserver-config

Mapserver configs for EPSCOR stuff.
GNU General Public License v3.0
1 stars 0 forks source link

DEM outputformat png16 #1

Open ness31 opened 4 years ago

ness31 commented 4 years ago

Hello, following your "defaults/dem.wms.default.includes.map", I can't get mapserver to output PNG16 format from DEM data. GEOTIFFINT16 is working fine however. 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 ? Does the PNG16 format works ok for you ? Thanks

spruceboy commented 4 years ago

We definitely had it working as we used it to feed a dem into a visualization tool. I haven't used it in years though, and the projected that used that service is long gone, so I can't offer much advice. It looks like the png driver supports create, maybe make sure your gdal version does by doing a gdal warp to a png to make sure that works.
Best of luck!

spruceboy commented 4 years ago

Have you included an output format definition for png16? We needed something like this:

OUTPUTFORMAT
  NAME PNG16
  DRIVER "GDAL/PNG"
  #DRIVER CAIRO/PNG
  #DRIVER "AGG/PNG" 
  MIMETYPE "image/png16"
  IMAGEMODE INT16
  EXTENSION "PNG"
END

You can see what we used here: https://github.com/gina-alaska/epscor-mapserver-config/blob/master/includes/defaults/output_formats.agg.include.map