Getting multiple GetLegendGraphic layer s

Eijnden, B. van den (Bart) b.vdeijnden at AGI.RWS.MINVENW.NL
Wed Jan 25 01:18:04 EST 2006


This is not possible unfortunately, the OGC SLD WMS spec defines only the
LAYER parameter which can contain 1 layer at the most.

Best regards,
Bart

-----Oorspronkelijk bericht-----
Van: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens James Net
Verzonden: woensdag 25 januari 2006 0:35
Aan: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: [UMN_MAPSERVER-USERS] Getting multiple GetLegendGraphic
layers


Hi list,

I was wondering how to request more than a single layer when requesting a 
Legend graphic?

For example,
http://my_server/cgi-bin/mapserv?map=my_map.map&SERVICE=WMS&VERSION=1.1.1&RE
QUEST=GetLegendGraphic&LAYER=water_line&FORMAT=image/png

would return the key/legend for the water_line layer.

How do I request and return more than one layer's key/legend on the same 
generated image?

For example,
http://my_server/cgi-bin/mapserv?map=my_map.map&SERVICE=WMS&VERSION=1.1.1&RE
QUEST=GetLegendGraphic&LAYER=water_line, 
water_point, water_polygon&FORMAT=image/png

Can it be done?

Also, the layers "water_line", "water_point" and "water_polygon" all belong 
to the same group named "water".

I would do this:
http://my_server/cgi-bin/mapserv?map=my_map.map&SERVICE=WMS&VERSION=1.1.1&RE
QUEST=GetLegendGraphic&LAYER=water&FORMAT=image/png

but it seems to fail.

Can it be done at all?

Thanks in advance!

_________________________________________________________________
Get FOXTEL this Summer - New low install price of only $29.95 
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fadsfac%2Enet%2Flink%2Easp%3F
cc%3DFXT018%2E19119%2E0%26clk%3D1%26creativeID%3D28172&_t=752582449&_m=EXT


Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te 
informeren. Wij adviseren u om bij twijfel over de juistheid of de 
volledigheid van de mail contact met afzender op te nemen.

This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************



More information about the mapserver-users mailing list