transparency bug in GetLegendGraphic

Bart van den Eijnden bartvde at GMAIL.COM
Wed Feb 6 05:59:31 EST 2008


Hi list,

it seems an image returned by WMS GetLegendGraphic can't be made transparent
unless we use the deprecated TRANSPARENT property of the LEGEND object.

My outputformat is defined transparent:

  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE "RGBA"
    TRANSPARENT TRUE
  END

If I try an equivalent mode=legend request the legend does come back
transparent, so I believe this is likely a problem in the mapwms.c code.

This is both a problem in MS 5.0 and 4.8.4.

Any pointers?

Example page to reproduce:

<html>
<body style="background-color:#FF0000">
<img src="
http://www.rijkswaterstaat.nl/services/geoservices/basispakket/grenzen?mode=legend&layer=AAA212
">
<img src="
http://www.rijkswaterstaat.nl/services/geoservices/basispakket/grenzen?service=WMS&format=image/png&request=GetLegendGraphic&version=1.1.1&layer=AAA212
">
</body>
</html>

Best regards,
Bart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20080206/bf2c63af/attachment.html


More information about the mapserver-dev mailing list