WMS GetLegendGraphic - Raster, Annotation AND GROUP
Bart van den Eijnden
bartvde at XS4ALL.NL
Tue Nov 23 09:31:01 PST 2004
Hi,
Version 4.4 beta 3 gives a ServiceException report as a response:
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException code="LayerNotDefined">
msWMSGetLegendGraphic(): WMS server error. Invalid layer given in the
LAYER parameter.
</ServiceException>
</ServiceExceptionReport>
If you want GetLegendGraphic to work for GROUP layers I would suggest
filing an enhancement bug. Currently it is not implemented, and I see an
issue with the implementation:
-the OGC spec says that we can't provide layer titles in the legend
images, so we can't distinguish the individual layers which are part of a
group
Best regards,
Bart
On Tue, 23 Nov 2004 18:19:47 +0100, Bart van den Eijnden
<bartvde at xs4all.nl> wrote:
> Hi,
>
> there was a discussion about the GROUP layers and GetLegendGraphic in bug
> 653, comments 9-12:
>
> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=653
>
> I can't remember what happened to my setup with GROUP layers, but it
> shouldn't give back a red cross :), I will check with version 4.4 to see
> if I can reproduce your problem.
>
> Best regards,
> Bart
>
> On Tue, 23 Nov 2004 18:15:14 +0100, Till Adams <adams at TERRESTRIS.DE>
> wrote:
>
>> 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
>>
>
>
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
More information about the MapServer-users
mailing list