[mapserver-users] AGG renderer and paletted RGBA PNG's

Roger André randre at gmail.com
Mon Dec 8 17:46:43 EST 2008


Hi All,

I'm seeing a problem in some of my raster data which have graduated color
ramps in them.  When using the AGG renderer, the data appears to have
discreet colors (which is incorrect), whereas with the GD renderer, we get
correct color gradients.

The GD outputformat looks like this:

  OUTPUTFORMAT
   NAME 'png'
   DRIVER GD/PNG
   IMAGEMODE RGBA
   EXTENSION "png"
   FORMATOPTION "TRANSPARENT=ON"
   FORMATOPTION "INTERLACE=OFF"
   TRANSPARENT ON
  END #end outputformat


The AGG outputformat looks like this:

OUTPUTFORMAT
  NAME 'AGGA'
  DRIVER AGG/PNG
  IMAGEMODE RGBA
  EXTENSION "png"
  MIMETYPE "image/png; mode=24bit"
  FORMATOPTION "TRANSPARENT=ON"
  FORMATOPTION "INTERLACE=OFF"
END

In addition, the output image appears to have a color palette, instead of
being a  4-ch png.  Finally, the problem is present in WMS requests, but not
straight MODE=map requests.

My WMS request looks like this:
http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/hydro/hydro.map&SERVICE=WMS&version=%221.1.1%22&REQUEST=GetMap&LAYERS=imagery&STYLES=&BBOX=-125,39,-108,54&WIDTH=600&HEIGHT=600&FORMAT=png&SRS=epsg:4326

Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081208/00330794/attachment.html


More information about the mapserver-users mailing list