Will do.&nbsp; Thank you.<br>
<br>
-Abe<br><br><div><span class="gmail_quote">On 9/1/05, <b class="gmail_sendername">Stephen Woodbridge</b> &lt;<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would just copy and paste the relevant parts of this thread into a new<br>bug and select it as a feature request.<br><br><a href="http://mapserver.gis.umn.edu/bugs/index.cgi">http://mapserver.gis.umn.edu/bugs/index.cgi</a>
<br><br>-Steve<br><br>Abe Gillespie wrote:<br>&gt; Yep, should be simple enough to keep a tab on the visible layers as<br>&gt; they're drawn.&nbsp;&nbsp;Well, I'll just stick to querying each layer by hand for<br>&gt; now.&nbsp;&nbsp;Where can I go to add a feature request?
<br>&gt;<br>&gt; Do we also want to put this into the MapScript API where each class can<br>&gt; have something like:<br>&gt;<br>&gt; $class-&gt;hasDataInCurrentMapExtents;&nbsp;&nbsp;// Or something more concise.&nbsp;&nbsp;:)<br>&gt;<br>&gt; And layers have the equivalent where it's false if each of it's classes
<br>&gt; are false for the above attribute.<br>&gt;<br>&gt; Thanks.<br>&gt; -Abe<br>&gt;<br>&gt; On 9/1/05, *Stephen Woodbridge* &lt;<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a><br>&gt; &lt;mailto:
<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Abe,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I think this would be a very valuable extension and it would not be that<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; hard to implement. All that you would need is a bit array that is zeroed
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; before a draw request where each bit represents a unique layer-class,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; then as objects are drawn you would OR 1 into the bit array for the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; layer-class index if/when an object is drawn. Then you would need to be
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; able to query the bit array for a given layer-class index to see if it<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; was drawn.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -Steve W.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Abe Gillespie wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; I build my legends by hand with PHP code because the native
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; functionality just isn't good enough for what I<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; need.&nbsp;&nbsp;Unfortunately I<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; still can't get it perfect because of what I think is missing<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; MapServer<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; functionality.&nbsp;&nbsp;Currently my legends are just too big for
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; printing.&nbsp;&nbsp;Is<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; there a way to tell whether a certain class is visible w/i the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; current<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; view?&nbsp;&nbsp;Now I don't mean whether the class is within it's scale<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; limits
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; (MIN or MAXSCALE).&nbsp;&nbsp;Rather can one tell if a layer / class has<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; any data<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; w/i the current view.&nbsp;&nbsp;For instance, I may have a fire hydrant<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; layer w/o<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; any scale dependencies.&nbsp;&nbsp;But I might be zoomed into a field way
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; out in<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; the country side.&nbsp;&nbsp;So, yeah, technically the layer can be seen at<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; that<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; scale, but no fire hydrants are actually in the view.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; If this doesn't exist, shall I issue a feature request?
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; Thanks.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; -Abe<br>&gt;<br>&gt;<br><br></blockquote></div><br>