WMS GetLegendGraphic - Raster, Annotation AND GROUP
Till Adams
adams at TERRESTRIS.DE
Tue Nov 23 09:15:14 PST 2004
Dear list,
we've just implemented the "getlegendgraphic" URL in order to get an WMS
based legend. Works fine for "normal" layers from umn v4.25. Good work
to all who we're involved!!
We don't receive a graphic for grouped layers (except the group has only
one layer, but that makes no sense at all) and annotations.
For pure raster layers there is no problem, because mapserver sends an
empty image, but normaly rasters are often grouped layers for
performance reasons, and then we get the "red cross" instead of an image
:-(.
Has anyone out there experinece with WMS and getlegendgraphic or is it
just a bug and should we wait for umn v 4.4? I didn't try v4.4, maybe
its done with that.
Some examples on that:
Works fine
http://www.terrestris.de/cgi-bin/mapserv425?map=/var/www/html/webapps/recklinghausen/info.map&&format=image/png&REQUEST=getlegendgraphic&VERSION=1.1.1&SERVICE=WMS&layer=Info_und_Service
Group does not work:
http://www.terrestris.de/cgi-bin/mapserv425?map=/var/www/html/webapps/recklinghausen/hgk.map&&format=image/png&REQUEST=getlegendgraphic&VERSION=1.1.1&SERVICE=WMS&layer=Schienennetz
Group and ANNOTATION does not work:
http://www.terrestris.de/cgi-bin/mapserv425?map=/var/www/html/webapps/recklinghausen/hgk.map&&format=image/png&REQUEST=getlegendgraphic&VERSION=1.1.1&SERVICE=WMS&layer=Kreisgrenze
sorry for the german ;-) and thanks in advance for any comment -
Cheers, Till
More information about the MapServer-users
mailing list