<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
Barend,<br>
<br>
I can add this into the LAYER and get a label in a Mapserver Legend call:<br>
<br>
<span style="font-family: Courier New;">CLASS</span><br style="font-family: Courier New;">
<span style="font-family: Courier New;">NAME "WS Distribution Mains"</span><br style="font-family: Courier New;">
<span style="font-family: Courier New;">END</span><br>
<br>
But still no Legend Chip . . .<br>
<br>
bobb<br>
<br>
<br>
<br>
________________________________________<br>
From: mapserver-users-bounces@lists.osgeo.org [mapserver-users-bounces@lists.osgeo.org] on behalf of Barend Köbben [kobben@itc.nl]<br>
Sent: Tuesday, June 12, 2012 12:49 PM<br>
To: mapserver-users@osgeo.org<br>
Subject: Re: [mapserver-users] Mapserver as WMS client, legend pass-through . . .<br>
<br>
Hmm, I clearly didn't read your original post well enough, sorry... The<br>
easy solution would be to have the legend embedded in the WMS image (use<br>
STATUS EMBED in the LEGEND object). Won't be useful if you want the WMS in<br>
a tiled fashion, though...<br>
<br>
Barend<br>
<br>
<br>
<br>
<br>
<br>
On 12-06-12 17:44, "Basques, Bob (CI-StPaul)"<br>
<bob.basques@ci.stpaul.mn.us> wrote:<br>
<br>
>you, I figured that out from the WMS request, but how to implement that<br>
>via the Mapserver WMS client we have in place.<br>
><br>
>I can get a LEGEND graphic like this for example:<br>
><br>
>http://wsgisserver.water.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMS<br>
>Server?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer<br>
>=2&width=200<br>
><br>
>but how to add this call into the MAPFILE for Our Mapserver client.<br>
><br>
>bobb<br>
><br>
><br>
>________________________________________<br>
>From: Barend Köbben [kobben@itc.nl]<br>
>Sent: Tuesday, June 12, 2012 10:33 AM<br>
>To: Basques, Bob (CI-StPaul); mapserver-users@osgeo.org<br>
>Subject: Re: [mapserver-users] Mapserver as WMS client, legend<br>
>pass-through . . .<br>
><br>
>Hi,<br>
><br>
>In the "WMS world" you get a legend by requesting it with a<br>
>GetLegendGraphic request, something like:<br>
><br>
>http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/mapserver/confi<br>
>g<br>
>OL.map&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.1.1&FORMAT=image/png<br>
>&<br>
>LAYER=forest<br>
><br>
>And you can do this for any of let LAYERs you have in you MAP file...<br>
><br>
>Barend<br>
><br>
>--<br>
>Barend Köbben<br>
>Senior Lecturer, ITC - University of Twente,<br>
>Faculty of Geo-Information Science and Earth Observation<br>
>PO Box 217, 7500AE Enschede (The Netherlands)<br>
>+31-(0)53 4874 253<br>
><br>
><br>
><br>
>On 12-06-12 17:12, "Basques, Bob (CI-StPaul)"<br>
><bob.basques@ci.stpaul.mn.us> wrote:<br>
><br>
>>All,<br>
>><br>
>>I have this MAPFILE which works fine for a Map image, but how do I get a<br>
>>WMS legend from the upstream WMS service? Do I need to set up a LAYER<br>
>>(like) definition inside of a LEGEND block for a mode=legend to work<br>
>>downstream. Right now I get a blank image.<br>
>><br>
>>I don't see any information on the topic in this page:<br>
>><br>
>>http://mapserver.org/ogc/wms_client.html#mapfile-configuration<br>
>><br>
>>About WMS Legend pass-through . . .<br>
>><br>
>>Thanks<br>
>><br>
>>bobb<br>
>><br>
>><br>
>>------------<br>
>><br>
>>MAP<br>
>> NAME 'WS_Distribution_Mains'<br>
>> SIZE 800 650<br>
>> EXTENT 593133.398829 170094.734526 593893.148973 170712.010326<br>
>><br>
>> STATUS ON<br>
>> UNITS FEET<br>
>> IMAGETYPE PNG24<br>
>><br>
>> PROJECTION<br>
>> "init=epsg:200068"<br>
>> END<br>
>><br>
>> LAYER<br>
>> NAME "WS distribution Mains"<br>
>> TYPE RASTER<br>
>> STATUS DEFAULT<br>
>> CONNECTION<br>
>>"http://XXX.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMSServer?"<br>
>> CONNECTIONTYPE WMS<br>
>><br>
>> METADATA<br>
>> "wms_srs" "EPSG:4326"<br>
>> "wms_name" "2"<br>
>> "wms_server_version" "1.1.1"<br>
>> "wms_format" "image/png24"<br>
>><br>
>> "ows_title" "0"<br>
>> "gml_include_items" "all"<br>
>> END<br>
>><br>
>> PROJECTION<br>
>> "init=epsg:4326"<br>
>> END<br>
>> END #layer<br>
>><br>
>> ##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt"<br>
>> ##DEBUG 5<br>
>><br>
>>END<br>
>><br>
><br>
><br>
>Faculty of Geo-Information Science and Earth Observation (ITC)<br>
>University of Twente<br>
>Chamber of Commerce: 501305360000<br>
><br>
>E-mail disclaimer<br>
>The information in this e-mail, including any attachments, is intended<br>
>for the addressee only. If you are not the intended recipient, you are<br>
>hereby notified that any disclosure, copying, distribution or action in<br>
>relation to the content of this information is strictly prohibited. If<br>
>you have received this e-mail by mistake, please delete the message and<br>
>any attachment and inform the sender by return e-mail. ITC accepts no<br>
>liability for any error or omission in the message content or for damage<br>
>of any kind that may arise as a result of e-mail transmission.<br>
><br>
><br>
<br>
<br>
Faculty of Geo-Information Science and Earth Observation (ITC)<br>
University of Twente<br>
Chamber of Commerce: 501305360000<br>
<br>
E-mail disclaimer<br>
The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information
 is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that
 may arise as a result of e-mail transmission.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
<br>
</body>
</html>