<html>
  <head>
    <style type="text/css">
      <!--
        body { line-height: normal; margin-left: 4px; margin-bottom: 1px; margin-right: 4px; margin-top: 4px; font-variant: normal }
        p { margin-bottom: 0; margin-top: 0 }
      -->
    </style>
    
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">Bill&#44;</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">Well&#44; first off&#44; I have no idea how the Legend entry for grp_BLM_WSAa_2009 is being created with nothing whatsoever in the Mapfile &#40;other than comments&#41; having that as a value. &nbsp;Could you be experiencing a Caching problem somewhere&#63; &nbsp;Another possibility&#44; is that the HTML legend parser is not recognizing the Comments in the Mapfile&#44; you could test this easily enough by removing the lines entirely.</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">I think a &#40;more&#41; failsafe way of approaching this is to build a complete set of dummy layer definitions for the Legends. &nbsp;One thing that seems to be a problem&#44; is the separation of WMS and normal legend HTML/Chip generation&#44; maybe you need two separate mapfiles&#44; one for the HTML legends and one for the mapping&#44; seems cumbersome to go this route though.</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">As a matter of discussion&#44; I went into using HTML legends early on&#44; and ran into similar problems as these&#44; and after a few months I ended up abandoning the use of them. &nbsp;Also&#44; I now use GeoMoose as my preferred client side interface&#44; which deals with each layer separately&#44; which is very conducive to building out layer specific legends. &nbsp;The PROs of using HTML legends were canceled out essentially&#44; by the organizational structure of how GeoMoose requests it&#39;s resources.</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <font size="3" face="Comic Sans MS">bobb</font>    </p>
<br>      
    <p style="margin-top: 0; margin-bottom: 0">
      <br>
      <br>
      &gt;&gt;&gt; Bill Thoen &lt;bthoen@gisnet.com&gt; wrote:<br>    </p>
    <div style="margin-bottom: 0; margin-left: 15px; background-color: #f3f3f3; margin-right: 0; border-left: solid 1px #050505; margin-top: 0; padding-left: 7px">
      <p style="margin-top: 0; margin-bottom: 0">
        thomas bonfort wrote:      </p>
      <blockquote type="cite" cite="mid:d2b988931003020505kf684a93kb225067b293dad94@mail.gmail.com">
        <pre wrap="">        <p style="margin-top: 0; margin-bottom: 0; white-space: pre" wrap="">
as the code is right now&#44; classes don&#39;t show up in the legend if they</p>
      <p style="margin-top: 0; margin-bottom: 0; white-space: pre">
have no NAME &#42;nor&#42; TITLE</p>
    <p style="margin-top: 0; margin-bottom: 0; white-space: pre">
&nbsp;&nbsp;</p>
</pre>
</blockquote>
<p style="margin-top: 0; margin-bottom: 0">
  Seeing Bob&#39;s comment&#44; I should add that I&#39;m using HTML legends and I&#39;m trying to combine &#42;layers&#42; as opposed to classes. Combining CLASSes from a LAYER is comparatively easy&#160;&nbsp;&#40;just select everything.&#41;<br><br>Taking out the LAYER name doesn&#39;t seem to work&#44; and if I remove the wms_title and the entire CLASS definition I still get&#160;&nbsp;a row in the legend for that layer&#44; no icon&#44; and &#39;&#91;metadata name&#61;&quot;wms_title&quot;&#93;&#39; in place of the layer title &#40;see red arrow pointing to what I get instead.<br><img height="179" src="cid:THIRXOSDYNSL.IMAGE_1.png" vspace="5" width="283" alt="Partial legend showing the problem" title="Partial view of legend showing the problem" hspace="0" border="1"><br><br>Here&#39;s the piece of my mapfile showing what I commented out and what I have in there &#40;The extra baggage is there to support retreiving feature attribute data&#41;:<br><tt>&#160;&#160;&nbsp;LAYER<br>&#160;&#160;&#160;&#160;&#160;&nbsp;GROUP &quot;BLM Lands&quot;<br>&#35;&#160;&#160;&#160;&#160;&nbsp;NAME &quot;grp_BLM_ACECs_2009&quot;<br>&#160;&#160;&#160;&#160;&#160;&nbsp;METADATA<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;&quot;legend_order&quot; &quot;2&quot;<br>&#35;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;&#39;wms_title&#39; &quot;grp_BLM_ACECs_2009&quot;<br>&#35;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;&#39;wms_group_title&#39; &quot;all_blm_land1&quot;<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;&#39;wms_srs&#39; &quot;epsg:2163&quot;<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;&#39;gml_include_items&#39; &quot;All&quot;<br>&#160;&#160;&#160;&#160;&#160;&nbsp;END<br>&#160;&#160;&#160;&#160;&#160;&nbsp;TYPE POLYGON<br>&#160;&#160;&#160;&#160;&#160;&nbsp;STATUS ON<br>&#160;&#160;&#160;&#160;&#160;&nbsp;TEMPLATE &quot;foo&quot;<br>&#160;&#160;&#160;&#160;&#160;&nbsp;DUMP TRUE<br>&#160;&#160;&#160;&#160;&#160;&nbsp;DATA &quot;Agencies/DOI/BLM/BLM_ACEC/BLM_ACECs_2009_2163&quot;<br>&#35;&#160;&#160;&#160;&#160;&nbsp;CLASS<br>&#35;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;NAME &quot;Areas of Critical Env. Concern&quot;<br>&#35;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;STYLE<br>&#35;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;COLOR 255 247 181<br>&#35;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;COLOR 255 000 000<br>&#35;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;END<br>&#35;&#160;&#160;&#160;&#160;&nbsp;END<br>&#160;&#160;&#160;&#160;&#160;&nbsp;PROJECTION<br>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;&quot;init&#61;epsg:2163&quot;<br>&#160;&#160;&#160;&#160;&#160;&nbsp;END<br>&#160;&#160;&nbsp;END<br></tt>I thought of trying different settings in the opt_flag bit field&#44; but there doesn&#39;t appear to be a setting for &quot;just do what I want.&quot; So I&#39;m still looking for ideas&#44; but Plan B is to script a conversion of all these various tables into a common structure and then use ogrtindex to paste them together. If anyone has an idea that would work and take less time I&#39;d sure like to hear from you&#33;<br><br></p>
<blockquote type="cite" cite="mid:d2b988931003020505kf684a93kb225067b293dad94@mail.gmail.com">
  <pre wrap="">  <p style="margin-top: 0; margin-bottom: 0; white-space: pre" wrap="">
On Tue&#44; Mar 2&#44; 2010 at 14:02&#44; Bob Basques <a class="moz-txt-link-rfc2396e" href="mailto:bob.b@gritechnologies.com">&lt;bob.b@gritechnologies.com&gt;</a>&nbsp;wrote:</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
&nbsp;&nbsp;</p>
</pre>
<blockquote type="cite">
<pre wrap=""><p style="margin-top: 0; margin-bottom: 0; white-space: pre" wrap="">
James&#44;</p>
<br>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
the Legend entries are keyed off of the NAME paramater in the mapfile&#44; if</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
you don&#39;t want a entry in the Legend&#44; comment out the NAME parameter that is</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
displaying the stuff you don&#39;t want.</p>
<br>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
bobb</p>
<br><br><br>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
On 3/2/2010 6:42 AM&#44; Bill Thoen wrote:</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
&nbsp;&nbsp;&nbsp;&nbsp;</p>
</pre>
<blockquote type="cite">
<pre wrap=""><p style="margin-top: 0; margin-bottom: 0; white-space: pre" wrap="">
James Card wrote:</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
</pre>
<blockquote type="cite">
<pre wrap=""><p style="margin-top: 0; margin-bottom: 0; white-space: pre" wrap="">
On Mon&#44; 01 Mar 2010 20:48:59 -0800&#44; Bill Thoen <a class="moz-txt-link-rfc2396e" href="mailto:bthoen@gisnet.com">&lt;bthoen@gisnet.com&gt;</a>&nbsp;wrote:</p>
<br>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
</pre>
<blockquote type="cite">
<pre wrap=""><p style="margin-top: 0; margin-bottom: 0; white-space: pre" wrap="">
I&#39;ve got about about 30 layers that I&#39;d like to display as a single</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
layer&#44; all in the same style&#44; with only one entry in the legend for the</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
group. I&#39;ve tried using the &#39;GROUP&#39; command in the mapfile&#44; and while that</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
does put them all under the same heading&#44; each layer still shows as a</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
separate entry in the legend.</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
</pre>
</blockquote>
<pre wrap=""><p style="margin-top: 0; margin-bottom: 0; white-space: pre" wrap="">
Perhaps a tileindex would work&#63; See &quot;ogrtindex&quot; at</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
<a class="moz-txt-link-rfc2396e" href="http://mapserver.org/optimization/tileindex.html">&lt;http://mapserver.org/optimization/tileindex.html&gt;</a>.</p>
<br>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
</pre>
</blockquote>
<pre wrap=""><p style="margin-top: 0; margin-bottom: 0; white-space: pre" wrap="">
Thanks&#33; That was so close&#44; but that doesn&#39;t work unless the data sets have</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
the same structure. Can you think of anything else short of manually merging</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
these one by one&#63;</p>
<br>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
</pre>
</blockquote>
<pre wrap=""><p style="margin-top: 0; margin-bottom: 0; white-space: pre" wrap="">
_______________________________________________</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
mapserver-users mailing list</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a></p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></p>
<br>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
&nbsp;&nbsp;&nbsp;&nbsp;</p>
</pre>
</blockquote>
<pre wrap=""><p style="margin-top: 0; margin-bottom: 0; white-space: pre" wrap="">
<!---->
_______________________________________________</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
mapserver-users mailing list</p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a></p>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></p>
<br>
<p style="margin-top: 0; margin-bottom: 0; white-space: pre">
&nbsp;&nbsp;</p>
</pre>
</blockquote>
<p style="margin-top: 0; margin-bottom: 0">
<br>
</p>
</div>
</body>
</html>