<html>
<font size=3>Richard-<br>
<br>
Thanks for the reply-<br>
<br>
Sorry for my confusion - I typed a &quot;|&quot;&nbsp; when it should
have been a &quot;/&quot;&nbsp; I appear to have the syntax correct for
making a match.<br>
<br>
If I seach for qstring=/A/&nbsp; I get every land use type with that as
part of the use designation<br>
including the&nbsp; 'AC-RW' - I don't want the 'AC-RW' match as it is not
of type 'A'<br>
<br>
If I leave it as A,&nbsp; /A,&nbsp; or A/&nbsp; I get &quot;no records
found&quot; - How do I get a match for only the polygons of type 'A' and
none of the others with an A in the type ?<br>
<br>
I need to be able to specify an absolute equality/match for character
fields as opposed to a match based on a portion of any character value in
that field.&nbsp; Are there other characters to include in the qstring
that specify what type of match to perform ?<br>
<br>
Ken<br>
<br>
At 12:02 PM 12/9/2004 -0700, you wrote:<br>
&gt;On Thu, 9 Dec 2004 08:34:26 -0800, Geographic Resource 
Solutions<br>
&gt;&lt;grs@grsgis.com&gt; wrote:<br>
&gt;&gt;  Dear list-<br>
&gt;&gt;  <br>
&gt;&gt;  I have searched the list for something like this and  have come
up empty.<br>
&gt;&gt;  <br>
&gt;&gt;  After getting everything to work I find my queries are not
returning the<br>
&gt;&gt; features I desire.  Rather they are returning too many 'hits.' 
The search<br>
&gt;&gt; expression is obviously operating as an SQL 'like'  with
wildcards at each<br>
&gt;&gt; end of the specified value rather than an SQL '='.  For
example,<br>
&gt;&gt;  <br>
&gt;&gt;  qstring = |101011|  <br>
&gt;&gt;  <br>
&gt;&gt;  when applied to my parcel data returns all parcels that have
the 101011<br>
&gt;&gt; characters present in their value, no matter where they are in
the string. <br>
&gt;&gt; Thus I get parcels 12 parcels starting with 101011,  but I also
get parcels<br>
&gt;&gt; like 522101011' which I do not want.<br>
&gt;&gt;  <br>
&gt;&gt;  Similarly, when searching for a land use code of 'A'  I return
all the 'A'<br>
&gt;&gt; land use polygons, but I also get all the 'AC-WR'  and any
others that have<br>
&gt;&gt; an 'A' in them which I do not want located.<br>
&gt;&gt;  <br>
&gt;&gt;  So my question is:<br>
&gt;&gt;  <br>
&gt;&gt;  Am I doing somethin wrong ?  How do I specify an expression
that should be<br>
&gt;&gt; an equality '=' rather than a 'like' ?  Is there a wildcard that
can be<br>
&gt;&gt; included in the expression statement so that it operates as I
define it<br>
&gt;&gt; (e.g. (101011% or A%)) rather than assuming wildcards are part
of the<br>
&gt;&gt; expression at beginning and end.  This is obviously not
following standard<br>
&gt;&gt; SQL formatting so what are the definitions that apply to
expressions and how<br>
&gt;&gt; can I generate the query results I need.  Queries that return
improper<br>
&gt;&gt; results make the programmer look rather foolish - and of course
I would like<br>
&gt;&gt; to avaoid that appearance !  I figure there must be a way - and
if not, then<br>
&gt;&gt; there really needs to be a way - but what is it ?<br>
&gt;&gt;  <br>
&gt;&gt;  Thanks in advance,<br>
&gt;&gt;  <br>
&gt;&gt;  Ken Stumpf<br>
&gt;&gt;  <br>
&gt;&gt;  <br>
&gt;&gt;  <br>
&gt;&gt; Geographic Resource Solutions <br>
&gt;&gt; 1125 16th Street, Suite 213 <br>
&gt;&gt; Arcata, CA 95521 <br>
&gt;&gt; Phone: (707) 822-8005 <br>
&gt;&gt; Fax: (707) 822-2864 <br>
&gt;&gt; 
<a href="http://www.grsgis.com/" eudora="autourl">www.grsgis.com</a>
<br>
&gt;<br>
&gt;<br>
&gt;Mapserver uses regular expression syntax, not SQL syntax, on the<br>
&gt;qstring. Try leaving off the pipe characters for starters, the apply<br>
&gt;regex symbols.<br>
&gt;<br>
&gt;Regards,<br>
&gt;-- <br>
&gt;Richard Greenwood<br>
&gt;richard.greenwood@gmail.com<br>
&gt;<a href="http://www.greenwoodmap.com/" eudora="autourl">www.greenwoodmap.com</a><br>
&gt; </font>
<BR>
<div>Geographic Resource Solutions</div>
<div>1125 16th Street, Suite 213</div>
<div>Arcata, CA 95521</div>
<div>Phone: (707) 822-8005</div>
<div>Fax: (707) 822-2864</div>
<br>
<a href="http://www.grsgis.com/" EUDORA=AUTOURL>www.grsgis.com</a>
</html>