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