<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> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>In ArcMap, there's an option "Make newly
added layers visible by default", under Tools -> Options -> 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> </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> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Bonnie</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </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
| 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? 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&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:26917&BBOX=298978.<BR>084774465,4606186.14109543,512740.303618177,4785860.76331283&WIDTH=972&HEIGH<BR>T=817&LAYERS=Municipalities_coarse,Cities&STYLES=&EXCEPTIONS=application/vnd<BR>.ogc.se_xml&FORMAT=image/png&BGCOLOR=0xFFFFFF&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
<BEN@SYNCERA-<BR>ITSOLUTIONS.NL> wrote:<BR><BR>>You always need to add
a NAME to the CLASS which you want Mapserver to<BR>show in the
legend.<BR>><BR>>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>><BR>>Does Mapserver put a LegendURL in your WMS capabilities
and does it work?<BR>I am assuming ArcMap will use that for
input.<BR>><BR>>Best regards,<BR>>Bart<BR>><BR>>Bart van den
Eijnden<BR>>Syncera IT Solutions<BR>>Postbus 270<BR>>2600 AG
DELFT<BR>><BR>>tel.nr.: 015-7512436<BR>>email:
BEN@Syncera-ITSolutions.nl<BR>><BR>>>>> Kevin Grootendorst
<kgrootendorst@BAIRD.COM> 06/24/05 04:44pm
>>><BR>>Hi,<BR>>I have a map file which I'm setting up as a WMS
server, so that I can view<BR>>my data in ArcMap 9.<BR>>I'm successful in
viewing the WMS in ArcMap, however it does not contain a<BR>>graphic in the
legend. In other words, the layers draw correctly (with<BR>>same colors
as in the map file), but the legend does not indicate
any<BR>>symbology.<BR>><BR>>Any ideas how I can get the legend
symbology to show?<BR>>Using MS 4.4 on win2000.<BR>><BR>>Below is a
snippet from my .map file:<BR>>(web
definition:)<BR>>WEB<BR>> IMAGEPATH
"C:/web/ms_tmp/"<BR>> IMAGEURL "/ms_tmp/"<BR>>
METADATA<BR>> "wms_title" "Pelee
WMS"<BR>> "wms_onlineresource" "<A
href="http://maps.baird.com/cgi-bin/mapserv.exe">http://maps.baird.com/cgi-bin/mapserv.exe</A>?<BR>>map=/web/maplab-2.2/Pelee/Pelee.map&"<BR>>
"wms_srs" "EPSG:26917"<BR>> "wms_abstract" "Pelee WMS
server"<BR>>
"wms_style" ""<BR>> END<BR>> END # END OF WEB
SECTION<BR>><BR>>(layer
definition):<BR>>LAYER<BR>> #NAME "Municipalities
(coarse)"<BR>> NAME
"Municipalities_coarse"<BR>> GROUP
"BASE"<BR>> METADATA<BR>> "wms_title"
"Municipalities"<BR>> "wms_srs"
"EPSG:26917"<BR>> "wms_style"
""<BR>> "wms_group_title"
"base"<BR>> END<BR>> STATUS
on<BR>> DATA "./Municipalities"<BR>>
TYPE POLYGON<BR>> UNITS METERS<BR>>
TEMPLATE "ttt"<BR>> SIZEUNITS
PIXELS<BR>> TOLERANCE 0<BR>>
TOLERANCEUNITS PIXELS<BR>> LABELITEM
"NAME"<BR>> CLASS<BR>>
LABEL<BR>> TYPE
BITMAP<BR>> SIZE
tiny<BR>> POSITION
cc<BR>> OFFSET 0
0<BR>> COLOR 100 100
100<BR>> #SHADOWSIZE 1 1<BR>>
OUTLINECOLOR 255 255 255<BR>>
END<BR>>
STYLE<BR>> SYMBOL
8<BR>> OUTLINECOLOR 0 0
0<BR>> BACKGROUNDCOLOR 99 99
99<BR>> SIZE
2<BR>> END<BR>>
END<BR>> 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>