<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.50.4613.1700" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>When I try to 
itemquery a Postal Code layer, I get:</FONT></SPAN></DIV>
<DIV><SPAN class=581251014-11062002>msQueryByAttributes(): Query error. 
Requested layer has no filter defined. </SPAN></DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>My URL looks like 
this:</FONT></SPAN></DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial size=2><A 
href="http://myserver/cgi-bin/mapserv.exe?map=d%3A%5CMapServer%5CMAPFiles%5CMOMap.map&amp;program=%2Fcgi-bin%2Fmapserv.exe&amp;map_web_imagepath=d%3A%5Cinetpub%5Cwwwroot%5Ctemp%5C&amp;map_web_imageurl=%2Ftemp%2F&amp;mode=itemquery&amp;value=63105&amp;qlayer=Zip+Codes&amp;item=ZIP&amp;mapext=shapes">http://myserver/cgi-bin/mapserv.exe?map=d%3A%5CMapServer%5CMAPFiles%5CMOMap.map&amp;program=%2Fcgi-bin%2Fmapserv.exe&amp;map_web_imagepath=d%3A%5Cinetpub%5Cwwwroot%5Ctemp%5C&amp;map_web_imageurl=%2Ftemp%2F&amp;mode=itemquery&amp;value=63105&amp;qlayer=Zip+Codes&amp;item=ZIP&amp;mapext=shapes</A></FONT></SPAN></DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>I've included the 
layer definition at the bottom of this email.&nbsp; I don't understand.&nbsp; 
Why do I need a filter?&nbsp; What filter do I need?&nbsp; I've read everything 
about this I could find before asking you, but the documentation on FILTER is 
very brief, and the mail archives didn't provide a solution.&nbsp; I should 
point out that I'm using OGR&nbsp;MapInfo TAB data.</FONT></SPAN></DIV>
<DIV><SPAN class=581251014-11062002></SPAN><SPAN 
class=581251014-11062002></SPAN><SPAN class=581251014-11062002></SPAN><SPAN 
class=581251014-11062002><FONT face=Arial size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>Thanks in 
advance,</FONT></SPAN></DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>Dan 
Martin</FONT></SPAN></DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>LAYER<BR>&nbsp; NAME 
"Zip Codes"<BR>&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp; "proj=latlong"<BR>&nbsp; 
END</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>&nbsp; 
CONNECTIONTYPE OGR<BR>&nbsp; CONNECTION 
"\GISData\Namerca\USA\Usa_Maps\USZIPBdy.TAB"</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>&nbsp; TYPE 
POLYGON<BR>&nbsp; STATUS OFF<BR>&nbsp;LABELITEM "ZIP"<BR>&nbsp; 
CLASS<BR>&nbsp;&nbsp;&nbsp; SYMBOL 'circle'<BR>&nbsp;&nbsp;&nbsp; SIZE 
2<BR>&nbsp;&nbsp;&nbsp; NAME 'ZIP Code Boundaries'<BR>&nbsp;&nbsp;&nbsp; 
OUTLINECOLOR 50 50 50 <BR>&nbsp;&nbsp;&nbsp; COLOR -1 -1 
-1<BR>&nbsp;&nbsp;LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION 
cc<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE 
TRUETYPE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT 
arial_narrow<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINSIZE 
8<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MAXSIZE 12<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
COLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 255 
255<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANTIALIAS 
true<BR>&nbsp;&nbsp;&nbsp;END<BR>&nbsp; END<BR>&nbsp; TEMPLATE 
"..\queryTemplates\US_ZIP_Code_query.html"<BR>END</FONT></SPAN></DIV></BODY></HTML>