logical expression for itemquery

Mike mike.mannomann at GMX.NET
Thu Oct 28 08:04:57 PDT 2004


Hi,
I am using MS for quite a while demo is running fine with my own data.
The only thing I have not been able to do, is a an itemquery with an
expression using two items like CITY = "x" AND STREET = "y" with an
zooming to the selected feature. The layer is called EUROPE I have been
trying and trying no way to find someone to help me. I only can query
using one item, and I have no idea to set an query wiht that kind of
expression.
Here is the part of my template, which is working only with one of the two
qitems.
---------------------------------------
 <input type="radio" name="mode" value="browse" checked> <b>Browse
map</b><br>
   <input type="radio" name="mode" value="itemquery">
<b>ATTR_ABFRAGE</b>
      <p>

   1   <input type="text" name="qstring" size="40" value="">
      <input type="hidden" name="qlayer" value="EUROPE">
      <input type="hidden" name="qitem" value="CITY">

    2 <input type="text" name="qstring" size="40" value="">
      <input type="hidden" name="qlayer" value="EUROPE">
      <input type="hidden" name="qitem" value="STREET"
-----------------------------------------------------------------

qlayer is set in the mapfile. I am not using any filter for I dont know
what the filter is for....
It doesnt seem to be possible to set two qitems from one query layer in a
template!?
What would be the way out of that? Where should I place the expression
mentioned above???
Desperately I looking for any help.
Thanks

Mike
ps:  I am not familiar with php and not with java and not with perl.
Probably there is no way then......



More information about the MapServer-users mailing list