<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>[Maybe SPAM] Re: [UMN_MAPSERVER-USERS] WMS server - legend graphic/symbology</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText4397 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi Kevin,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>In ArcMap, there's an option "Make newly 
added layers visible by default", under Tools -&gt; Options -&gt; General 
tab.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>I think this is why the layers are always 
on - if I remember correctly, it turns on the first 20 layers when you connect 
to a WMS.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Try unchecking this option and see if that 
fixes the problem.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Bonnie</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</DIV></DIV>
<DIV id=idSignature29340 dir=ltr>
<DIV><FONT face=Arial color=#000000 size=2><FONT face=Helv size=2>
<DIV>
<DIV><FONT face=Arial color=#000000 size=2><FONT face=Helv color=#000000 size=2>
<DIV><FONT face=Arial color=gray size=2><SPAN lang=EN-AU 
style="FONT-SIZE: 11pt; COLOR: gray; FONT-FAMILY: Arial">__________________________________</SPAN></FONT></DIV>
<DIV>
<DIV class=MsoNormal><FONT face=Arial color=gray size=2><SPAN lang=EN-AU 
style="FONT-SIZE: 11pt; COLOR: gray; FONT-FAMILY: Arial"></SPAN></FONT><FONT 
face=Arial color=gray size=2><SPAN lang=EN-AU 
style="FONT-SIZE: 11pt; COLOR: gray; FONT-FAMILY: Arial">Bonnie 
Stewart</SPAN></FONT></DIV>
<DIV class=MsoNormal><FONT face=Arial color=gray size=2><SPAN lang=EN-AU 
style="FONT-SIZE: 11pt; COLOR: gray; FONT-FAMILY: Arial">Research 
Officer<BR></SPAN></FONT><FONT face=Arial color=gray size=2><SPAN lang=EN-AU 
style="FONT-SIZE: 11pt; COLOR: gray; FONT-FAMILY: Arial">Satellite Remote 
Sensing Services<BR></SPAN></FONT><FONT face=Arial color=gray size=2><SPAN 
lang=EN-AU style="FONT-SIZE: 11pt; COLOR: gray; FONT-FAMILY: Arial">Information 
Access Division<BR></SPAN></FONT><FONT face=Arial color=gray size=2><SPAN 
lang=EN-AU style="FONT-SIZE: 11pt; COLOR: gray; FONT-FAMILY: Arial">Department 
of Land Information<BR></SPAN></FONT><FONT face=Arial color=gray size=2><SPAN 
lang=EN-AU style="FONT-SIZE: 11pt; COLOR: gray; FONT-FAMILY: Arial">65 Brockway 
Road, FLOREAT WA </SPAN></FONT><FONT face=Arial color=gray size=2><SPAN 
lang=EN-AU 
style="FONT-SIZE: 11pt; COLOR: gray; FONT-FAMILY: Arial">6014<BR></SPAN></FONT><FONT 
face=Arial color=gray size=2><SPAN lang=EN-AU 
style="FONT-SIZE: 11pt; COLOR: gray; FONT-FAMILY: Arial">Ph. (08) 9387 0342 
|&nbsp;Fx. (08) 9383 7142<BR></SPAN></FONT><FONT face=Arial color=gray 
size=2><SPAN lang=EN-AU 
style="FONT-SIZE: 11pt; COLOR: gray; FONT-FAMILY: Arial"><A 
href="mailto:bonnie.stewart@dli.wa.gov.au">bonnie.stewart@dli.wa.gov.au</A><BR></SPAN></FONT><FONT 
face=Arial color=gray size=2><SPAN lang=EN-AU 
style="FONT-SIZE: 11pt; COLOR: gray; FONT-FAMILY: Arial"><A 
href="http://www.dli.wa.gov.au">www.dli.wa.gov.au</A></SPAN></FONT></DIV></DIV></FONT></FONT></DIV></DIV></FONT></FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List on behalf of 
Kevin Grootendorst<BR><B>Sent:</B> Fri 24/06/2005 11:00 PM<BR><B>To:</B> 
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [Maybe SPAM] Re: 
[UMN_MAPSERVER-USERS] WMS server - legend graphic/symbology<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Bart,<BR>Thanks for your suggestion.<BR>I added NAME " " to the 
CLASS object and everything works as expected.<BR><BR>Do you know why ALL the 
wms layers would be turned 'on' while viewing in<BR>ArcMap?&nbsp; I assumed that 
only the layers with STATUS ON would be visible<BR>initially.<BR><BR>The log 
that ArcMap sends is as follows:<BR>"GET 
/cgi-bin/mapserv.exe?map=/web/maplab-<BR>2.2/Pelee/Pelee.map&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:26917&amp;BBOX=298978.<BR>084774465,4606186.14109543,512740.303618177,4785860.76331283&amp;WIDTH=972&amp;HEIGH<BR>T=817&amp;LAYERS=Municipalities_coarse,Cities&amp;STYLES=&amp;EXCEPTIONS=application/vnd<BR>.ogc.se_xml&amp;FORMAT=image/png&amp;BGCOLOR=0xFFFFFF&amp;TRANSPARENT=TRUE 
HTTP/1.1"<BR>200 53798<BR><BR>The 'cities' layer is set to Status OFF, but still 
draws when the service<BR>is first added to ArcMap.<BR><BR>Kevin<BR>On Fri, 24 
Jun 2005 16:48:29 +0200, Bart van den Eijnden 
&lt;BEN@SYNCERA-<BR>ITSOLUTIONS.NL&gt; wrote:<BR><BR>&gt;You always need to add 
a NAME to the CLASS which you want Mapserver to<BR>show in the 
legend.<BR>&gt;<BR>&gt;Not sure if this will get you through showing the legend 
in ArcMap though.<BR>Try and log the request that ArcMap is 
sending.<BR>&gt;<BR>&gt;Does Mapserver put a LegendURL in your WMS capabilities 
and does it work?<BR>I am assuming ArcMap will use that for 
input.<BR>&gt;<BR>&gt;Best regards,<BR>&gt;Bart<BR>&gt;<BR>&gt;Bart van den 
Eijnden<BR>&gt;Syncera IT Solutions<BR>&gt;Postbus 270<BR>&gt;2600 AG&nbsp; 
DELFT<BR>&gt;<BR>&gt;tel.nr.: 015-7512436<BR>&gt;email: 
BEN@Syncera-ITSolutions.nl<BR>&gt;<BR>&gt;&gt;&gt;&gt; Kevin Grootendorst 
&lt;kgrootendorst@BAIRD.COM&gt; 06/24/05 04:44pm 
&gt;&gt;&gt;<BR>&gt;Hi,<BR>&gt;I have a map file which I'm setting up as a WMS 
server, so that I can view<BR>&gt;my data in ArcMap 9.<BR>&gt;I'm successful in 
viewing the WMS in ArcMap, however it does not contain a<BR>&gt;graphic in the 
legend.&nbsp; In other words, the layers draw correctly (with<BR>&gt;same colors 
as in the map file), but the legend does not indicate 
any<BR>&gt;symbology.<BR>&gt;<BR>&gt;Any ideas how I can get the legend 
symbology to show?<BR>&gt;Using MS 4.4 on win2000.<BR>&gt;<BR>&gt;Below is a 
snippet from my .map file:<BR>&gt;(web 
definition:)<BR>&gt;WEB<BR>&gt;&nbsp;&nbsp;&nbsp; IMAGEPATH 
"C:/web/ms_tmp/"<BR>&gt;&nbsp;&nbsp;&nbsp; IMAGEURL "/ms_tmp/"<BR>&gt;&nbsp; 
METADATA<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; "wms_title" "Pelee 
WMS"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; "wms_onlineresource" "<A 
href="http://maps.baird.com/cgi-bin/mapserv.exe">http://maps.baird.com/cgi-bin/mapserv.exe</A>?<BR>&gt;map=/web/maplab-2.2/Pelee/Pelee.map&amp;"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
"wms_srs" "EPSG:26917"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; "wms_abstract" "Pelee WMS 
server"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"wms_style" ""<BR>&gt;&nbsp;&nbsp; END<BR>&gt;&nbsp; END # END OF WEB 
SECTION<BR>&gt;<BR>&gt;(layer 
definition):<BR>&gt;LAYER<BR>&gt;&nbsp;&nbsp;&nbsp; #NAME "Municipalities 
(coarse)"<BR>&gt;&nbsp;&nbsp;&nbsp; NAME 
"Municipalities_coarse"<BR>&gt;&nbsp;&nbsp;&nbsp; GROUP 
"BASE"<BR>&gt;&nbsp;&nbsp;&nbsp; METADATA<BR>&gt; "wms_title" 
"Municipalities"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wms_srs" 
"EPSG:26917"<BR>&gt; "wms_style" 
""<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wms_group_title"&nbsp; 
"base"<BR>&gt;&nbsp;&nbsp;&nbsp; END<BR>&gt;&nbsp;&nbsp;&nbsp; STATUS 
on<BR>&gt;&nbsp;&nbsp;&nbsp; DATA "./Municipalities"<BR>&gt;&nbsp;&nbsp;&nbsp; 
TYPE POLYGON<BR>&gt;&nbsp;&nbsp;&nbsp; UNITS METERS<BR>&gt;&nbsp;&nbsp;&nbsp; 
TEMPLATE "ttt"<BR>&gt;&nbsp;&nbsp;&nbsp; SIZEUNITS 
PIXELS<BR>&gt;&nbsp;&nbsp;&nbsp; TOLERANCE 0<BR>&gt;&nbsp;&nbsp;&nbsp; 
TOLERANCEUNITS PIXELS<BR>&gt;&nbsp;&nbsp;&nbsp; LABELITEM 
"NAME"<BR>&gt;&nbsp;&nbsp;&nbsp; CLASS<BR>&gt;&nbsp;&nbsp;&nbsp; 
LABEL<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE 
BITMAP<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 
tiny<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION 
cc<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OFFSET 0 
0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 100 100 
100<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #SHADOWSIZE 1 1<BR>&gt; 
OUTLINECOLOR 255 255 255<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
END<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
STYLE<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 
8<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 
0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BACKGROUNDCOLOR 99 99 
99<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 
2<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&gt;&nbsp;&nbsp;&nbsp; 
END<BR>&gt;&nbsp; END<BR></FONT></P></DIV>

<FONT SIZE=3><BR>
<BR>
This e-mail and any files transmitted with it are intended only for the use of the addressee(s).  It may contain information that is confidential and privileged.  If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this in error, please notify the author by Return email to the sender. Information in this message not relating to the official business of DLI shall be understood as neither given nor endorsed by it.  While every care is taken, it is recommended that you scan any attachments for viruses. DLI liability is limited to re-supplying affected attachments.<BR>
</FONT>
</BODY>
</HTML>