[Mapserver-users] itemquery problems
Grant Howarth
Grant.Howarth at divestco.com
Thu Jul 17 12:59:12 PDT 2003
This is a multi-part message in MIME format.
------=_NextPartTM-000-a12521bd-062d-4902-8b3d-5aec0c2846f0
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C34C9D.E4644A35"
------_=_NextPart_001_01C34C9D.E4644A35
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi list,
I am trying to do a itemquery to get other attributes from my dbf file =
and i am having some troubles.
=20
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
=20
=20
In my map file i have a layer defined as follows:
=20
LAYER=20
NAME "seismic"
DATA seismic/seis2dlibrarycard
STATUS default
TYPE LINE
FILTERITEM TEXT1
CLASS
TEMPLATE seismic.html
END
END
=20
=20
my url is as follows:
=20
http://10.0.50.131/cgi-bin/mapserver.exe?mode=3Ditemquery =
<http://10.0.50.131/cgi-bin/mapserver.exe?mode=3Ditemquery&map=3Dc:/mapfi=
les/winpics.map&qlayer=3Dseismic&map_seismic_filter=3D/|108365211/> =
&map=3Dc:/mapfiles/winpics.map&qlayer=3Dseismic&map_seismic_filter=3D/|10=
8365211/
=20
=20
=20
my template file is as follows:
=20
{item: seismic [TEXT1] attr: fold "[TEXT2]" attr: text3 "[TEXT3]" attr: =
ID "[TEXT1]" loc: [shpext]}
=20
=20
i am getting the following error:
msQueryByAttributes(): Query error. No query expression defined.
=20
=20
------_=_NextPart_001_01C34C9D.E4644A35
Content-Type: text/html;
charset="iso-8859-1"
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=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY>
<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 file=20
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 vi=20
the template. I don't think i am doing this right and any help =
would be=20
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 =
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&map=
=3Dc:/mapfiles/winpics.map&qlayer=3Dseismic&map_seismic_filter=3D=
/|108365211/">http://10.0.50.131/cgi-bin/mapserver.exe?mode=3Ditemquery&a=
mp;map=3Dc:/mapfiles/winpics.map&qlayer=3Dseismic&map_seismic_fil=
ter=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 is=20
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 =
expression=20
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></SPAN></FONT></BODY></HTML>
------_=_NextPart_001_01C34C9D.E4644A35--
------=_NextPartTM-000-a12521bd-062d-4902-8b3d-5aec0c2846f0--
More information about the MapServer-users
mailing list