<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Palatino Linotype";
panose-1:2 4 5 2 5 5 5 3 3 4;}
@font-face
{font-family:"Freestyle Script";
panose-1:3 8 4 2 3 2 5 11 4 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Palatino Linotype","serif";
color:#0F243E;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Palatino Linotype","serif";color:#0F243E'>Does anybody have any suggestions for the problem outlined below? Is it a problem the order of the If statements?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Palatino Linotype","serif";color:#0F243E'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Palatino Linotype","serif";color:#0F243E'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Palatino Linotype","serif";color:#0F243E'><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-US style='font-size:20.0pt;font-family:"Freestyle Script";color:#0F243E'>Brian<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Palatino Linotype","serif";color:#0F243E'><o:p> </o:p></span></p></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Palatino Linotype","serif";color:#0F243E'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> mapserver-users-bounces@lists.osgeo.org [mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Brian Barrett<br><b>Sent:</b> 06 April 2011 08:05<br><b>To:</b> 'mapserver-users@lists.osgeo.org'<br><b>Subject:</b> [mapserver-users] html legend<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have a mapserver html legend that does not show all of my desired classes. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>My map has some layers with a group name and some without. Most layers with a group name need just a single legend entry, so I’ve specified a [leg_group_html] section (as shown below) to identify those layers using the “isset” and “neq” operators.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The layers with a group name “geophysics” or “interp” need a legend item for each layer (with a specific formatting) so I’ve specified a [leg_class_html] section and set these up there using the “eq” operator on the “layer_group”<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>My problem is with the remaining layers that have no group defined. These currently do not show in the legend, despite using the “isnull” option in the [leg_class_html] section. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Code is below. Can anyone help explain the problem please?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>[leg_header_html] <o:p></o:p></p><p class=MsoNormal>[/leg_header_html]<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>[leg_group_html]<o:p></o:p></p><p class=MsoNormal> [if name=group_name oper=isset] <o:p></o:p></p><p class=MsoNormal> [if name=group_name oper=neq value="geophysics"]<o:p></o:p></p><p class=MsoNormal> [if name=group_name oper=neq value="interp"]<o:p></o:p></p><p class=MsoNormal> [if name=layer_status oper=eq value=1]<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <table><tr><o:p></o:p></p><p class=MsoNormal> <td width=15> </td><o:p></o:p></p><p class=MsoNormal> <td width=20><o:p></o:p></p><p class=MsoNormal> <img src="[leg_icon width=20 height=15]" width=20 height=15 alt=""> <o:p></o:p></p><p class=MsoNormal> </td><o:p></o:p></p><p class=MsoNormal> <td><o:p></o:p></p><p class=MsoNormal> [leg_group_name]<o:p></o:p></p><p class=MsoNormal> </td><o:p></o:p></p><p class=MsoNormal> </tr></table><o:p></o:p></p><p class=MsoNormal> [/if][/if][/if][/if]<o:p></o:p></p><p class=MsoNormal>[/leg_group_html]<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>[leg_class_html]<o:p></o:p></p><p class=MsoNormal> [if name=layer_group oper=isnull]<o:p></o:p></p><p class=MsoNormal> <table><tr><o:p></o:p></p><p class=MsoNormal> <td width=15> </td><o:p></o:p></p><p class=MsoNormal> <td width=20><o:p></o:p></p><p class=MsoNormal> <img src="[leg_icon width=20 height=15]" width=20 height=15 alt=""> <o:p></o:p></p><p class=MsoNormal> </td><o:p></o:p></p><p class=MsoNormal> <td><o:p></o:p></p><p class=MsoNormal> [leg_class_name]<o:p></o:p></p><p class=MsoNormal> </td><o:p></o:p></p><p class=MsoNormal> </tr></table><o:p></o:p></p><p class=MsoNormal> [/if]<o:p></o:p></p><p class=MsoNormal> [if name=layer_group oper=eq value="geophysics"] <o:p></o:p></p><p class=MsoNormal> <table><tr><o:p></o:p></p><p class=MsoNormal> <td width=15> </td><o:p></o:p></p><p class=MsoNormal> <td width=200><o:p></o:p></p><p class=MsoNormal> <img src="[leg_icon width=200 height=40]" width=200 height=40 alt=""> <o:p></o:p></p><p class=MsoNormal> </td><o:p></o:p></p><p class=MsoNormal> </tr></table><o:p></o:p></p><p class=MsoNormal> [/if]<o:p></o:p></p><p class=MsoNormal> [if name=layer_group oper=eq value="interp"] <o:p></o:p></p><p class=MsoNormal> <table><tr><o:p></o:p></p><p class=MsoNormal> <td width=15> </td><o:p></o:p></p><p class=MsoNormal> <td width=300><o:p></o:p></p><p class=MsoNormal> <img src="[leg_icon width=300 height=400]" width=300 height=400 alt=""> <o:p></o:p></p><p class=MsoNormal> </td><o:p></o:p></p><p class=MsoNormal> </tr></table><o:p></o:p></p><p class=MsoNormal> [/if]<o:p></o:p></p><p class=MsoNormal>[/leg_class_html]<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:20.0pt;font-family:"Freestyle Script";color:#0F243E'>Brian<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Palatino Linotype","serif";color:#0F243E'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:17.25pt'><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#244061'>3D mapping and site investigation services for:<br></span></b><span style='color:#0F243E'><a href="http://www.zetica.com/productsandservices/pipelines.htm"><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>Pipeline and cable routes</span></b></a></span><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#244061'> | </span></b><span style='color:#0F243E'><a href="http://www.zetica.com/productsandservices/sitesafe.htm"><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>UXO</span></b></a></span><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#244061'> | </span></b><span style='color:#0F243E'><a href="http://www.zetica.com/productsandservices/utilities01.htm"><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>Utilities</span></b></a></span><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#244061'> | </span></b><span style='color:#0F243E'><a href="http://www.zeticarail.com/"><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>Rail</span></b></a></span><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#244061'> | </span></b><span style='color:#0F243E'><a href="http://www.zetica.com/productsandservices/engineering.htm"><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>Foundation design</span></b></a></span><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#244061'> | </span></b><span style='color:#0F243E'><a href="http://www.zetica.com/productsandservices/flood-defences.htm"><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>Flood defences</span></b></a></span><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#244061'> | </span></b><span style='color:#0F243E'><a href="http://www.zetica.com/productsandservices/topographic-land-and-measure-surveys.htm"><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>Surveying</span></b></a></span><b><span lang=EN-US style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#244061'><o:p></o:p></span></b></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:17.25pt;line-height:13.5pt'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>** Click </span><span style='color:#0F243E'><a href="http://www.zetica.com/news.htm"><b><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>here</span></b></a></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'> to see our latest newsletter **<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:17.25pt;line-height:13.5pt'><b><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>Brian Barrett</span></b><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'><br>Senior Geophysicist<br></span><span style='color:#0F243E'><a href="mailto:sBrian@zetica.com"><b><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>brian@zetica.com</span></b></a></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:17.25pt;line-height:13.5pt'><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>Tel: 44-(0)1993-886682<br>Mob: 44-(0)7973-549737<br>Fax: 44-(0)1993-886683<br></span><span style='color:#0F243E'><a href="http://www.zetica.com/"><b><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>www.zetica.com</span></b></a></span><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><img border=0 width=143 height=43 id="Picture_x0020_1" src="cid:image001.gif@01CBF903.A890EF80" alt=Zetica><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:17.25pt;line-height:13.5pt'><b><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>Zetica Ltd <br></span></b><span style='font-size:8.5pt;font-family:"Verdana","sans-serif";color:#014D6C'>Units 15 & 16 <br>Hanborough Business Park<br>Long Hanborough<br>OX29 8LH, UK<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:17.25pt;line-height:8.25pt'><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#999999'>Zetica Limited is registered in England No. 4079723 <o:p></o:p></span></p><div style='border-top:solid #666666 1.0pt;border-left:none;border-bottom:solid #666666 1.0pt;border-right:none;padding:3.0pt 0cm 3.0pt 0cm'><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:17.25pt;line-height:8.25pt'><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#999999'>The information in this email is intended only for the addressee(s) named above. Access to this email by anyone else is unauthorised. If you are not the intended recipient of this message any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. Zetica Ltd and or its subsidiaries do not warrant that any attachments are free from viruses or other defects and accept no liability for any losses resulting from infected email transmissions. Please note that any views expressed in this email may be those of the originator and do not necessarily reflect those of this organisation.<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p></div></body></html>