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

Roger André randre at gmail.com
Mon Dec 8 15:44:35 PST 2008


Looks like the WMS request needs some additional parameters:

&FORMAT=image/png;%20mode=24bit

Can I add these into the mapfile instead?
--




On Mon, Dec 8, 2008 at 2:46 PM, Roger André <randre at gmail.com> wrote:

> 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/974fc54c/attachment.htm>


More information about the MapServer-users mailing list