<!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> </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&program=%2Fcgi-bin%2Fmapserv.exe&map_web_imagepath=d%3A%5Cinetpub%5Cwwwroot%5Ctemp%5C&map_web_imageurl=%2Ftemp%2F&mode=itemquery&value=63105&qlayer=Zip+Codes&item=ZIP&mapext=shapes">http://myserver/cgi-bin/mapserv.exe?map=d%3A%5CMapServer%5CMAPFiles%5CMOMap.map&program=%2Fcgi-bin%2Fmapserv.exe&map_web_imagepath=d%3A%5Cinetpub%5Cwwwroot%5Ctemp%5C&map_web_imageurl=%2Ftemp%2F&mode=itemquery&value=63105&qlayer=Zip+Codes&item=ZIP&mapext=shapes</A></FONT></SPAN></DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>I've included the
layer definition at the bottom of this email. I don't understand.
Why do I need a filter? What filter do I need? 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. I should
point out that I'm using OGR 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> </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> </DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>LAYER<BR> NAME
"Zip Codes"<BR> PROJECTION<BR> "proj=latlong"<BR>
END</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial size=2>
CONNECTIONTYPE OGR<BR> CONNECTION
"\GISData\Namerca\USA\Usa_Maps\USZIPBdy.TAB"</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=581251014-11062002><FONT face=Arial size=2> TYPE
POLYGON<BR> STATUS OFF<BR> LABELITEM "ZIP"<BR>
CLASS<BR> SYMBOL 'circle'<BR> SIZE
2<BR> NAME 'ZIP Code Boundaries'<BR>
OUTLINECOLOR 50 50 50 <BR> COLOR -1 -1
-1<BR> LABEL<BR> POSITION
cc<BR> TYPE
TRUETYPE<BR> FONT
arial_narrow<BR> MINSIZE
8<BR> MAXSIZE 12<BR>
COLOR 0 0 0<BR> OUTLINECOLOR 255 255
255<BR> ANTIALIAS
true<BR> END<BR> END<BR> TEMPLATE
"..\queryTemplates\US_ZIP_Code_query.html"<BR>END</FONT></SPAN></DIV></BODY></HTML>