[mapserver-users] problem with itemquery
Martin Hoegh
mh@svaj.dk
Fri, 8 Nov 2002 11:28:20 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0057_01C28719.F0E24CD0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello
I have worked with MapServer quite a while now and find it very useful. =
But I have a problem which I can not solve. I am using ms to generate an =
image in an html image tag, very simple:
=20
The url looks like this:
=20
http://localhost/scripts/mapserv.exe?map=3D../wwwroot/langeland/langeland=
.map&mode=3Ditemquerymap&qlayer=3Dsavebygninger&layers=3Dsavebygninger&ma=
p_savebygninger_filteritem=3Did&map_savebygninger_filter=3D%273440%27&map=
xy=3Dshape&IMGSIZE=3D500+500
=20
and layer definition:
=20
LAYER
NAME savebygninger
TYPE polygon
STATUS on
DATA save_bygninger_pol_region_s34
METADATA
"DESCRIPTION" "savebygninger"
"RESULT_FIELDS" "ID"
END
CLASS
name savebygninger
TEMPLATE "ttt"
SIZE 7=20
COLOR 255 0 0
END
END
=20
And the result:
=20
msQueryByAttributes(): Search returned no results. No matching record(s) =
found, layer and area of interest do not overlap.
=20
This can not be true, I have checked every thing and it works fine with =
mode=3Dmap but not mode=3Ditemquerymap. The url works fine with other =
shp-files.
=20
What could be wrong? Could it be something with the shp-file? It does =
not seem to be corrupted.
=20
I am using MS 3.6.3, win2000 IIS.
=20
/Martin Hoegh
------=_NextPart_000_0057_01C28719.F0E24CD0
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.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman">Hello<?xml:namespace prefix =3D o ns =3D=20
"urn:schemas-microsoft-com:office:office" =
/><o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman">I=20
have worked with MapServer quite a while now and find it very useful. =
But I have=20
a problem which I can not solve. I am using ms to generate an image in =
an html=20
image tag, very simple:<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman">The=20
url looks like this:<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><A=20
href=3D"http://localhost/scripts/mapserv.exe?map=3D../wwwroot/langeland/l=
angeland.map&mode=3Ditemquerymap&qlayer=3Dsavebygninger&layer=
s=3Dsavebygninger&map_savebygninger_filteritem=3Did&map_savebygni=
nger_filter=3D%273440%27&mapxy=3Dshape&IMGSIZE=3D500+500"><FONT=20
face=3D"Times New Roman"=20
size=3D3>http://localhost/scripts/mapserv.exe?map=3D../wwwroot/langeland/=
langeland.map&mode=3Ditemquerymap&qlayer=3Dsavebygninger&laye=
rs=3Dsavebygninger&map_savebygninger_filteritem=3Did&map_savebygn=
inger_filter=3D%273440%27&mapxy=3Dshape&IMGSIZE=3D500+500</FONT><=
/A><o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman">and=20
layer definition:<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman">LAYER<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> </SPAN>NAME=20
savebygninger<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> </SPAN>TYPE=20
polygon<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> </SPAN>STATUS=20
on<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> </SPAN>DATA=20
save_bygninger_pol_region_s34<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> =20
</SPAN>METADATA<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> =
</SPAN>"DESCRIPTION"=20
"savebygninger"<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> =
</SPAN>"RESULT_FIELDS"=20
"ID"<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> =20
</SPAN>END<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> =20
</SPAN>CLASS<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> </SPAN>name=20
savebygninger<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> </SPAN>TEMPLATE=20
"ttt"<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> </SPAN>SIZE 7=20
<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> </SPAN>COLOR 255 0=20
0<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman"><SPAN=20
style=3D"mso-spacerun: yes"> =
</SPAN>END<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman">END<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman">And=20
the result:<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman">msQueryByAttributes(): Search returned no =
results. No=20
matching record(s) found, layer and area of interest do not=20
overlap.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman">This=20
can not be true, I have checked every thing and it works fine with =
mode=3Dmap but=20
not mode=3Ditemquerymap. The url works fine with other=20
shp-files.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman">What=20
could be wrong? Could it be something with the shp-file? It does not =
seem to be=20
corrupted.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT face=3D"Times =
New Roman">I am=20
using MS 3.6.3, win2000 IIS.<o:p></o:p></FONT></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0cm 0cm 0pt"><SPAN lang=3DEN-US=20
style=3D"mso-ansi-language: EN-US"><FONT size=3D3><FONT=20
face=3D"Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P><SPAN =
lang=3DEN-US=20
style=3D"FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; =
mso-ansi-language: EN-US; mso-fareast-font-family: 'Times New Roman'; =
mso-fareast-language: DA; mso-bidi-language: AR-SA">/Martin=20
Hoegh</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0057_01C28719.F0E24CD0--