GetLegendGraphic

Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Wed May 11 03:14:39 EDT 2005


Paul,

this was a change indeed. It has to do with the fact whether or not your specify a Rule in the GetLegendGraphic request.

In 4.2 it would always come back with the last Rule/Class if you did not specify the Rule.

In 4.4.2 we changed this to have GetLegendGraphic without a Rule specified return a full legend. The spec says the following:

"In the case that a style has multiple rules but no specific rule is selected,then the map server is obligated to produce a graphic that is representative of
all of the rules of the style".

On Cubewerx's advice we added labels to it since otherwise the rules cannot be distinguished from each other.

For details there is a bug report explaining everything:

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=653

Best regards,
Bart

Bart van den Eijnden
Syncera-ITSolutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> Paul Ramsey <pramsey at REFRACTIONS.NET> 05/11/05 02:27am >>>
On my 4.4.2 version of Mapserver, GetLegendGraphic does not seem to
respect HEIGHT and WIDTH parameters. It also is insisting on adding a
textual label to the legend graphic.

In the 4.2 version running the DM Solutions GMap, GetLegendGraphic
returns perfect little legend graphics.

What is different / changed? Special configuration required to get good
legend graphics?

Thanks,

Paul



More information about the mapserver-users mailing list