Looks like the WMS request needs some additional parameters:<br><br>&FORMAT=image/png;%20mode=24bit<br><br>Can I add these into the mapfile instead?<br>--<br><br><br><br><br><div class="gmail_quote">On Mon, Dec 8, 2008 at 2:46 PM, Roger André <span dir="ltr"><<a href="mailto:randre@gmail.com">randre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi All,<br><br>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.<br>
<br>The GD outputformat looks like this:<br><br> OUTPUTFORMAT<br> NAME 'png'<br> DRIVER GD/PNG<br> IMAGEMODE RGBA<br> EXTENSION "png"<br> FORMATOPTION "TRANSPARENT=ON"<br> FORMATOPTION "INTERLACE=OFF"<br>
TRANSPARENT ON<br> END #end outputformat<br><br><br>The AGG outputformat looks like this:<br><br>OUTPUTFORMAT<br> NAME 'AGGA'<br> DRIVER AGG/PNG<br> IMAGEMODE RGBA<br> EXTENSION "png"<br> MIMETYPE "image/png; mode=24bit"<br>
FORMATOPTION "TRANSPARENT=ON"<br> FORMATOPTION "INTERLACE=OFF"<br>END<br><br>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.<br>
<br>My WMS request looks like this:<br><a href="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" target="_blank">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</a><br>
<br>Any ideas? <br>
</blockquote></div><br>