[Mapserver-users] GetLegendGraphic Rules?
Kralidis,Tom [Burlington]
Tom.Kralidis at ec.gc.ca
Wed Jun 16 20:34:29 PDT 2004
Hi,
I've found this issue as well. IMHO, a GetLegendGraphic request should
give back all classes with labels -- just like the MapServer CGI
"mode=legend" does.
I believe there is a ticket open on this issue. As a temporary
workaround, what I do is:
- generate a legend image to disk (with MapServer CGI "mode=legend" or
./legend command line
- set KEYIMAGE in layer CLASS object to the image
..but I haven't tried this with multiple or scale dependent classes, and
not sure how it would work
At any rate, this would be a valued enhancement to the MapServer OGC:WMS
support.
..Tom
=========================
Tom Kralidis
Systems Scientist
Environment Canada
Tel: +01-905-336-4409
http://www.ec.gc.ca/
> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu
> [mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of
> Richard Orchard
> Sent: Wednesday, June 16, 2004 11:00 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [Mapserver-users] GetLegendGraphic Rules?
>
>
> hi,
>
> I am using the following WMS request to get a legend:
>
http://jimbeam.ermapper.com.au/mapserver/mapserv.exe?map=D:/webs/www3/Av
ein_
Demo.map&VERSION=1.1.1&REQUEST=GetLegendGraphic&service=WMS&LAYER=Geolog
y - indicating rock type&format=image/png
Unfortunately, this only produces the one graphic item without a label.
I would like display all the class items within the layer, each with a
label. Is there a way of doing this?
I chased up some bug reports, and mailing list archives, etc, and they
mentioned specifying a rule. What should the rule value be?
I am using mapServer 4.2.
Any help would be appreciated.
Richard
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error please notify the
sender immediately and delete the original. Any other use of the email
by you is prohibited..
www.ermapper.com
www.earthetc.com
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list