<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div>Hey Mark,</div><div><br></div><div>I looked into this tonight and there is a bit of a problem searching multiple layers using the itemquery.php tool. &nbsp;That is because the field "qitem" needs to be searched against the layer.</div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><b><span style="font-weight: bold;">From:</span></b> Mark Volz &lt;MarkVolz@co.lyon.mn.us&gt;<br><b><span style="font-weight: bold;">To:</span></b> geomoose-users@lists.sourceforge.net<br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, August 11, 2009 9:16:46 AM<br><b><span
 style="font-weight: bold;">Subject:</span></b> [Geomoose-users] search on more than one layer - GM 2.0<br></font><br>



 
 

 

 

 

<style>
<!--
 
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.EmailStyle17
        {font-family:Arial;color:windowtext;}
 _filtered {margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {}
-->
</style>





<div class="Section1">

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">Hello,</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">I would like to set up GM 2.0 to search for more than one
layer, and I am having difficulty setting it up.&nbsp; Is there any
documentation on how to get multiple searches working?</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">In detail:</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">I was trying to add another search for a second layer.&nbsp;
I looked at the code for itemquery.php and noticed that that the input value layers
gets exploded which to me implies that we can use the search service for more
than one layer. - $layersToSearch = explode(':', $qlayers);</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">Therefore, I modified the search service to include ditches
in the mapbook.xml file &lt;input type="hidden"
name="layer" value="parcels/all:Ditches/all"/&gt;&nbsp;
However when I did that I received errors.</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">Since that did not work I reverted to copied search_parcels to
search_ditches.&nbsp; Next, I modified the user_tools.css file so to include
search ditches as well.&nbsp; After testing a search the only message I received
is that no results were returned for your query.</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">Thanks</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;"> &nbsp;</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">Mark Volz</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">GIS Specialist</span></font></p> 

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">Lyon County</span></font><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;">,
 MN</span></font></p> 

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="
font-size:12.0pt;"> &nbsp;</span></font></p> 

</div>




</div></div></blockquote><div style="position:fixed"></div></div><br>

      </body></html>