[Mapserver-users] Itemquery not performing as expected in v4.

Chris Storozuk cstorozuk at shaw.ca
Mon Oct 27 18:39:03 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0083_01C39CB1.36AF7A00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

In the demos at =
http://maps.dnr.state.mn.us/mapserver_demos/tests40/itemquery/test.html, =
Case 1, Simple ItemQuery With QueryMap, the second map is displayed =
zoomed in to the extents of the selected feature. The HTML in the =
template for this image is:

<img border=3D"2" =
src=3D"[mapserv]?map=3D[map]&name=3D[name_esc]&mode=3Ditemquerymap&mapext=
=3Dshapes&qlayer=3D[qlayer]&qitem=3D[qitem]&qstring=3D[qstring]" =
height=3D"300" width=3D"300">

Substituting *my* data for the demo county data, and using the same =
template (modified for my data where item "ID" is my ID field, qlayer =
"cart" is my query layer defined in my map file) results in the same =
template file generating a page showing the correct full map with my =
queried object highlighted according to my QUERYMAP object in my map =
file, but with the old red X in place of my second image. Looking at the =
properties of the second image, I see the source as (simplified):
http://24.79.12.230/scripts/mapserv.exe?&map=3Dcart.map&name=3D3663&mode=3D=
itemquerymap&mapext=3Dshapes&qlayer=3Dcart
which looks very similar to the source for the second demo map:
http://maps.dnr.state.mn.us/cgi-bin/mapserv40?map=3Dcase1.map&name=3DGood=
hue&mode=3Ditemquerymap&mapext=3Dshapes&qlayer=3Dcounty

Has anyone else had this problem with version 4 (I am also using Windows =
XP), or see anything that I am missing?

Thanks,
Chris


------=_NextPart_000_0083_01C39CB1.36AF7A00
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=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2733.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3D"Courier New" size=3D2>In the demos at </FONT><A=20
href=3D"http://maps.dnr.state.mn.us/mapserver_demos/tests40/itemquery/tes=
t.html"><FONT=20
face=3D"Courier New"=20
size=3D2>http://maps.dnr.state.mn.us/mapserver_demos/tests40/itemquery/te=
st.html</FONT></A><FONT=20
face=3D"Courier New" size=3D2>, Case 1, Simple ItemQuery With QueryMap, =
the second=20
map is displayed zoomed in to the extents of the selected feature. The =
HTML in=20
the template for this image is:</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&lt;img border=3D"2"=20
src=3D"[mapserv]?map=3D[map]&amp;name=3D[name_esc]&amp;mode=3Ditemqueryma=
p&amp;mapext=3Dshapes&amp;qlayer=3D[qlayer]&amp;qitem=3D[qitem]&amp;qstri=
ng=3D[qstring]"=20
height=3D"300" width=3D"300"&gt;</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Substituting *my* data for the =
demo county=20
data, and using the same template (modified for my data where item "ID" =
is my ID=20
field, qlayer "cart" is my query layer defined in my map file) results =
in the=20
same template file generating a page showing the correct full map with =
my=20
queried object highlighted according to my QUERYMAP object in my map =
file, but=20
with </FONT><FONT><FONT face=3D"Courier New" size=3D2>the old red X in =
place of my=20
second image. Looking at the properties of the second image, I see the =
source as=20
(simplified):</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><A=20
href=3D"http://24.79.12.230/scripts/mapserv.exe?&amp;map=3Dcart.map&amp;n=
ame=3D3663&amp;mode=3Ditemquerymap&amp;mapext=3Dshapes&amp;qlayer=3Dcart"=
>http://24.79.12.230/scripts/mapserv.exe?&amp;map=3Dcart.map&amp;name=3D3=
663&amp;mode=3Ditemquerymap&amp;mapext=3Dshapes&amp;qlayer=3Dcart</A></FO=
NT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>which looks very similar to the =
source for=20
the second demo map:</FONT></DIV>
<DIV></FONT><FONT face=3D"Courier New" size=3D2><A=20
href=3D"http://maps.dnr.state.mn.us/cgi-bin/mapserv40?map=3Dcase1.map&amp=
;name=3DGoodhue&amp;mode=3Ditemquerymap&amp;mapext=3Dshapes&amp;qlayer=3D=
county">http://maps.dnr.state.mn.us/cgi-bin/mapserv40?map=3Dcase1.map&amp=
;name=3DGoodhue&amp;mode=3Ditemquerymap&amp;mapext=3Dshapes&amp;qlayer=3D=
county</A></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Has anyone else had this =
problem with=20
version 4 (I am also using Windows XP), or see anything that I am=20
missing?</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Chris</FONT></DIV>
<DIV><FONT face=3D"Courier New" =
size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0083_01C39CB1.36AF7A00--




More information about the mapserver-users mailing list