Opened 20 years ago

Closed 19 years ago

Last modified 19 years ago

#843 closed defect (fixed)

GetLegendGraphic does not interpret Rule parameter

Reported by: bartvde@… Owned by: assefa
Priority: high Milestone: 4.4 release
Component: WMS Server Version: 4.3
Severity: normal Keywords:
Cc: valik.solorzano.barboza@…, pagurekd@…, godwinl@…

Description

The GetLegendGraphic request currently does not interpret the Rule parameter.
Always the legend icon of the last class is given back, but the correct legend
icon should be given back instead.

Change History (8)

comment:1 by bartvde@…, 20 years ago

Cc: valik.solorzano.barboza@… added

comment:2 by pagurekd@…, 20 years ago

Cc: pagurekd@… added

comment:3 by godwinl@…, 20 years ago

Cc: godwinl@… added

comment:4 by dmorissette, 19 years ago

Milestone: 4.4 release
I see in the code that the case where RULE is specified is there but it simply
calls msCreateLegendIcon() without specifying a class. Is this the result of an
incomplete implementation?  Assefa: can this easily be fixed? If not then please
move target to FUTURE.

comment:5 by assefa, 19 years ago

Cc: mapserver-bugs@… added
Owner: changed from mapserverbugs to assefa
It is incomplete. I was under the impression that It was fixed by Valik since I
raised this in Bug 653. I am going to correct it.

comment:6 by assefa, 19 years ago

Resolution: fixed
Status: newclosed
The Rule value is now used with to fetch the correspnding class by comparing the
rule value with the class name. If there is a match, an icon for the class is
retunrned. If there is no match an exception is returned.

comment:7 by godwinl@…, 19 years ago

this may be for a separate bug, and may already have been considered, but in 
the GetStyles response, the spec has a "name" tage for rules.  Could the class 
names be added as rule names in the response too now that the getLegendGraphic 
accepts it?

comment:8 by assefa, 19 years ago

It make sense to return the class names when doing a GetStyles. I have added a
new Bug for Liz's request Bug 1010.
Note: See TracTickets for help on using tickets.