[Mapserver-users] itemquery problems
Swaminathan, Gayathri
gayathri at ou.edu
Thu Jul 17 12:59:59 PDT 2003
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C34C9E.009563C0
Content-Type: text/plain
Hi:
You are missing some thingies in the map file.,
See if this link helps.,
http://maps.dnr.state.mn.us/mapserver_demos/tests36/itemquery/test.html
<http://maps.dnr.state.mn.us/mapserver_demos/tests36/itemquery/test.html>
Thanks,
Gayathri
-----Original Message-----
From: Grant Howarth [mailto:Grant.Howarth at divestco.com]
Sent: Thursday, July 17, 2003 1:59 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] itemquery problems
Hi list,
I am trying to do a itemquery to get other attributes from my dbf file and
i am having some troubles.
text1 is an id number (108365211) and i am hoping to have the value of text2
returned to me vi the template. I don't think i am doing this right and any
help would be great. Thanks. - Grant
In my map file i have a layer defined as follows:
LAYER
NAME "seismic"
DATA seismic/seis2dlibrarycard
STATUS default
TYPE LINE
FILTERITEM TEXT1
CLASS
TEMPLATE seismic.html
END
END
my url is as follows:
http://10.0.50.131/cgi-bin/mapserver.exe?mode=itemquery
<http://10.0.50.131/cgi-bin/mapserver.exe?mode=itemquery&map=c:/mapfiles/win
pics.map&qlayer=seismic&map_seismic_filter=/|108365211/>
&map=c:/mapfiles/winpics.map&qlayer=seismic&map_seismic_filter=/|108365211/
my template file is as follows:
{item: seismic [TEXT1] attr: fold "[TEXT2]" attr: text3 "[TEXT3]" attr: ID
"[TEXT1]" loc: [shpext]}
i am getting the following error:
msQueryByAttributes(): Query error. No query expression defined.
------_=_NextPart_001_01C34C9E.009563C0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<TITLE>Message</TITLE>
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D758191121-17072003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>Hi:</FONT></SPAN></DIV>
<DIV><SPAN class=3D758191121-17072003><FONT face=3DArial =
color=3D#0000ff size=3D2>You=20
are missing some thingies in the map file.,</FONT></SPAN></DIV>
<DIV><SPAN class=3D758191121-17072003><FONT face=3DArial =
color=3D#0000ff size=3D2>See if=20
this link helps.,</FONT></SPAN></DIV>
<DIV><SPAN class=3D758191121-17072003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D758191121-17072003><FONT face=3DArial =
color=3D#0000ff size=3D2><A=20
href=3D"http://maps.dnr.state.mn.us/mapserver_demos/tests36/itemquery/te=
st.html">http://maps.dnr.state.mn.us/mapserver_demos/tests36/itemquery/t=
est.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=3D758191121-17072003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D758191121-17072003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D758191121-17072003><FONT face=3DArial =
color=3D#0000ff=20
size=3D2>Gayathri</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> =
Grant Howarth=20
[mailto:Grant.Howarth at divestco.com] <BR><B>Sent:</B> Thursday, July =
17, 2003=20
1:59 PM<BR><B>To:</B> =
mapserver-users at lists.gis.umn.edu<BR><B>Subject:</B>=20
[Mapserver-users] itemquery problems<BR><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D587155119-17072003>Hi=20
list,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D587155119-17072003> I am=20
trying to do a itemquery to get other attributes from =
my dbf=20
file and i am having some troubles.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D587155119-17072003>text1 is an id=20
number (108365211) and i am hoping to have the value of text2 =
returned to me=20
vi the template. I don't think i am doing this right and any =
help would=20
be great. Thanks. - Grant</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D587155119-17072003>In =
my map file i=20
have a layer defined as follows:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D587155119-17072003>LAYER <BR> =20
NAME "seismic"<BR> DATA seismic/seis2dlibrarycard<BR> =
STATUS=20
default<BR> TYPE LINE<BR> FILTERITEM TEXT1<BR> =20
CLASS<BR> TEMPLATE seismic.html<BR> =20
END<BR>END</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D587155119-17072003>my =
url is as=20
follows:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D587155119-17072003><A=20
=
href=3D"http://10.0.50.131/cgi-bin/mapserver.exe?mode=3Ditemquery&ma=
p=3Dc:/mapfiles/winpics.map&qlayer=3Dseismic&map_seismic_filter=3D=
/|108365211/">http://10.0.50.131/cgi-bin/mapserver.exe?mode=3Ditemquery&=
amp;map=3Dc:/mapfiles/winpics.map&qlayer=3Dseismic&map_seismic_f=
ilter=3D/|108365211/</A></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D587155119-17072003>my =
template file=20
is as follows:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D587155119-17072003>{item: seismic=20
[TEXT1] attr: fold "[TEXT2]" attr: text3 "[TEXT3]" attr: ID "[TEXT1]" =
loc:=20
[shpext]}<BR></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D587155119-17072003>i =
am getting the=20
following error:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003>msQueryByAttributes(): Query error. No =
query=20
expression defined.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003></SPAN></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D587155119-17072003> </DIV></BLOCKQUOTE></SPAN></FONT></BODY=
></HTML>
------_=_NextPart_001_01C34C9E.009563C0--
More information about the MapServer-users
mailing list