<div dir="ltr"><p dir="ltr">Ideally, the PHP would check for groups and explode them into layers then act on the layers.</p>
<p dir="ltr">That would probably be implemented by checking both the name and group of each layer and including the layer if either match as it iterates through.  Something like this (not tested):</p><p dir="ltr"><br></p>
<p dir="ltr">===============================</p><p dir="ltr"><span style="font-family:'courier new',monospace;font-size:x-small">diff --git a/htdocs/php/select.php b/htdocs/php/select.php</span></p><font face="courier new, monospace" size="1">--- a/htdocs/php/select.php<br>
+++ b/htdocs/php/select.php<br>@@ -193,7 +193,14 @@ if($layer == 'all') {<br>                array_push($layersToQuery, $map->getLayer($i));<br>        }<br> } else {<br>-       array_push($layersToQuery, $map->getLayerByName($layer));<br>
+       $group_layers = $map->getLayersIndexByGroup($layer);<br>+       if(count($group_layers) > 0) {<br>+               foreach($group_layers as $layerid) {<br>+                       array_push($layersToQuery, $map->getLayer($layerid);<br>
+               }<br>+       } else {<br>+               array_push($layersToQuery, $map->getLayerByName($layer));<br>+       }<br> }</font><div><font face="courier new, monospace" size="1"> $foundShapes = array();
</font><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">================================</div><div class="gmail_quote"><br></div><div class="gmail_quote" style>Also, might have to be more careful about not including the same layer twice.</div>
<div class="gmail_quote" style><br></div><div class="gmail_quote" style>Jim</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Jun 11, 2013 12:40 PM, "TC Haddad" <<a href="mailto:tchaddad@gmail.com" target="_blank">tchaddad@gmail.com</a>> wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div class="gmail_quote">On Tue, Jun 11, 2013 at 10:30 AM, Jim Klassen <span dir="ltr"><<a href="mailto:klassen.js@gmail.com" target="_blank">klassen.js@gmail.com</a>></span> wrote:</div><div class="gmail_quote">


<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">I'm not sure Firebug would tell you.  GeoMoose JS only knows what is in the mapbook.  If you give it a group it will send a group.  The question is if the GeoMoose PHP side is handling groups correctly within MapScript.</div>


<div><br></div></blockquote></div></div><div><br></div>Exactly.<div><br></div><div>Yesterday Eli and I discussed this a bit more on IRC, and I looked at the php around line 215 a bit more closely. The failure is happening when the code checks the projection of the LAYER. But if the LAYER does not have a projection it will use the projection of the MAP.</div>


<div><br></div><div>In my situation, all my Layers have projections and they are all the same, and are the same as the MAP projection, so in theory I can comment out the 3 lines of php that check the LAYER projection, which will force it to use the projection of the MAP. This *should* mean that I can GROUP my layers and still be able to use the select tool without further workarounds or trickery.</div>


<div><br></div><div>Have not yet had a chance to test and confirm yet....</div><div><br></div><div>T</div><div class="gmail_extra"><br><br></div></div>
</blockquote></div>
</div></div>