<html>
  <head>
    <style type="text/css">
      <!--
        body { margin-left: 4px; margin-right: 4px; line-height: normal; margin-bottom: 1px; margin-top: 4px; font-variant: normal }
        p { margin-bottom: 0; margin-top: 0 }
      -->
    </style>
    
  </head>
  <body style="margin-left: 4px; margin-right: 4px; margin-bottom: 1px; margin-top: 4px" content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Comic Sans MS" size="3">Brent&#44;</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <br>
          </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Comic Sans MS" size="3">Ok&#44; this is sort of way out there&#44; I read your Legend Mail &#40;MSG10603&#41; and wondered about . . . </font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <br>
          </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Comic Sans MS" size="3">What if you use MapServer with a template&#44; to build a Mapfile on the fly from the database query&#44; then pass that in to MapServer for legend rendering&#63;&nbsp;&#160;Seems like the long way round&#44; but might prove an interesting experiment to work out a permanent solution.</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <br>
          </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Comic Sans MS" size="3">Also&#44; wasn&#39;t there work recently related to passing in a Mapfile via CGI&#63;&nbsp;&#160;Maybe there is a possibilty of piping these operations together somehow&#44; just thinking out loud here.</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <br>
          </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <font face="Comic Sans MS" size="3">bobb</font>    </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <br>
          </p>
    <p style="margin-top: 0; margin-bottom: 0">
      <br>
      <br>
      &gt;&gt;&gt; Brent Fraser &lt;bfraser@geoanalytic.com&gt; wrote:<br>    </p>
    <div style="margin-left: 15px; margin-right: 0; padding-left: 7px; margin-bottom: 0; margin-top: 0; background-color: #f3f3f3; border-left: solid 1px #050505">
      <p style="margin-top: 0; margin-bottom: 0">
        Yewondwossen Assefa wrote:<br>&gt; On 11/06/2010 11:54 AM&#44; Lime&#44; Steve D &#40;DNR&#41; wrote:<br>&gt;&gt; I think it would be a reasonable addition. Are you thinking about<br>&gt;&gt; simply adding a visibility flag to a layer and flipping it<br>&gt;&gt; if features are rendered&#63; Often legend rendering is done separately<br>&gt;&gt; from drawing&#44; as two separate requests. Presumably you&#39;d<br>&gt;&gt; need a something like a fake draw map option in the legend code to<br>&gt;&gt; make a drawing-like pass through the data. Could get expensive.<br>&gt;&gt;<br>&gt;&gt;&#160;&#160;&#160;<br>&gt;&#160;&#160;Yes&#44;&#160;&#160;it could be an expensive operation to do a fake draw to get the<br>&gt; legend. I am wondering if we could save something when a draw is done<br>&gt; and retrieve it for the legend if it validates the current<br>&gt; layers/extent&#160;&#160;constraint.&#160;&#160;Draw and legend are separate process but<br>&gt; come usually one after the other so trying to take into account that<br>&gt; fact might help.<br>&gt;<br>&gt; regards<br>&gt;<br><br><br>And it could solve my problem of generating a legend when using bound styling<br>&#40;http://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg10603.html&#41;<br><br>Best Regards&#44;<br>Brent Fraser<br><br>_______________________________________________<br>mapserver-dev mailing list<br>mapserver-dev@lists.osgeo.org<br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver">http://lists.osgeo.org/mailman/listinfo/mapserver</a>-dev<br>
      </p>
    </div>
  </body>
</html>