[Mapserver-users] 4.0 itemquery - layer and area of interest do not overlap

Chris Storozuk cstorozuk at shaw.ca
Mon Oct 27 13:55:59 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0051_01C39C89.AB517200
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

David,

Thanks. The following is part of my .map file, which shows the extent of =
the province and the class definition:

MAP
 SHAPEPATH "../../../data"
 SIZE 300 300
 EXTENT 145000 6688000 885000 5400000
...
WEB
  TEMPLATE alberta.html
END

 LAYER
  NAME alberta
  DATA alberta_10tm
  STATUS default
  TYPE POLYGON
   CLASS
     OUTLINECOLOR 212 212 212
     COLOR 0 0 0
     TEMPLATE 'case1_template.html'
   END
 END
...

This is the form part of the HTML template:
-------
<input type=3D"hidden" name=3D"mode" value=3D"itemquery">
<input type=3D"hidden" name=3D"qitem" value=3D"ID">
<input type=3D"hidden" name=3D"qlayer" value=3D"alberta">

<select name=3D"qstring" size=3D"1">
<option value=3D300>300</option>
...=20
-------

The URL request (simplified) after submitting the form is as follows:
http://24.79.12.230/scripts/mapserv.exe?mapserv=3D...mapserv.exe&map=3D..=
.alberta.map&map_web_imagepath=3D...queries&map_web_imageurl=3D...queries=
&mode=3Ditemquery&qitem=3DID&qlayer=3Dalberta&qstring=3D300

I'd appreciate it if anyone can see anything wrong with this picture.

Chris

----- Original Message -----=20
From: "David Fawcett" <dfawcett at moea.state.mn.us>
To: <mapserver-users at lists.gis.umn.edu>; <cstorozuk at shaw.ca>
Sent: Monday, October 27, 2003 10:43 AM
Subject: Re: [Mapserver-users] 4.0 itemquery - layer and area of =
interest do not overlap


> Chris,=20
>=20
> It could be that you are passing the correct parameters, but that =
there
> is a problem with your expression.  If you provide more details, I =
would
> guess that the list can help you out.
>=20
> David.
>=20
> David J. Fawcett
> MN Office of Environmental Assistance
>=20
> >>> Chris Storozuk <cstorozuk at shaw.ca> 10/24/2003 8:10:03 PM >>>
> Using MapServer 4.0, when doing an itemquery on a record I know =
exists,
> I am getting the error:
>=20
> msQueryByAttributes(): Search returned no results. No matching
> record(s) found, layer and area of interest do not overlap.=20
>=20
> If I can say that the extents in the MAP area of my .map file are
> absolutely sufficient to cause the queried feature to fall within it,
> what else could cause this to happen? (I used Arcview's coordinates to
> make sure the extent was correct by hovering over the top-left and
> bottom-right corners of my shapefile, so I know the extents are
> correct.)
>=20
> Thanks,
> Chris

------=_NextPart_000_0051_01C39C89.AB517200
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>David,</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Thanks. The following is part =
of my .map=20
file, which shows the extent of the province and the class=20
definition:</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>MAP</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&nbsp;SHAPEPATH=20
"../../../data"<BR>&nbsp;SIZE 300 300<BR>&nbsp;EXTENT 145000 6688000 =
885000=20
5400000<BR>...</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>WEB<BR>&nbsp; TEMPLATE=20
alberta.html<BR>END</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&nbsp;LAYER<BR>&nbsp; NAME=20
alberta<BR>&nbsp; DATA alberta_10tm<BR>&nbsp;&nbsp;STATUS=20
default<BR>&nbsp;&nbsp;TYPE POLYGON<BR>&nbsp;&nbsp;=20
CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 212 212=20
212<BR>&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp; =
TEMPLATE=20
'case1_template.html'<BR>&nbsp;&nbsp; =
END<BR>&nbsp;END<BR>...</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>This is the form part of the =
HTML=20
template:</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>-------</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&lt;input type=3D"hidden" =
name=3D"mode"=20
value=3D"itemquery"&gt;<BR>&lt;input type=3D"hidden" name=3D"qitem"=20
value=3D"ID"&gt;<BR>&lt;input type=3D"hidden" name=3D"qlayer"=20
value=3D"alberta"&gt;</FONT></DIV><FONT face=3DArial =
size=3D2></FONT><FONT face=3DArial=20
size=3D2></FONT><FONT face=3DArial size=3D2></FONT>
<DIV><FONT face=3DArial size=3D2></FONT><BR><FONT face=3D"Courier New"=20
size=3D2>&lt;select name=3D"qstring" size=3D"1"&gt;</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&lt;option=20
value=3D300&gt;300&lt;/option&gt;</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>... </FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>-------</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>The URL request =
(simplified)&nbsp;after=20
submitting the form is&nbsp;as follows:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://24.79.12.230/scripts/mapserv.exe?mapserv=3D...mapserv.exe&=
amp;map=3D...alberta.map&amp;map_web_imagepath=3D...queries&amp;map_web_i=
mageurl=3D...queries&amp;mode=3Ditemquery&amp;qitem=3DID&amp;qlayer=3Dalb=
erta&amp;qstring=3D300">http://24.79.12.230/scripts/mapserv.exe?mapserv=3D=
...mapserv.exe&amp;map=3D...alberta.map&amp;map_web_imagepath=3D...querie=
s&amp;map_web_imageurl=3D...queries&amp;mode=3Ditemquery&amp;qitem=3DID&a=
mp;qlayer=3Dalberta&amp;qstring=3D300</A></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>I'd appreciate it if anyone can =
see=20
anything wrong with this picture.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Chris</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>----- Original Message ----- =
</FONT>
<DIV><FONT face=3D"Courier New" size=3D2>From: "David Fawcett" =
&lt;</FONT><A=20
href=3D"mailto:dfawcett at moea.state.mn.us"><FONT face=3D"Courier New"=20
size=3D2>dfawcett at moea.state.mn.us</FONT></A><FONT face=3D"Courier New"=20
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>To: &lt;</FONT><A=20
href=3D"mailto:mapserver-users at lists.gis.umn.edu"><FONT face=3D"Courier =
New"=20
size=3D2>mapserver-users at lists.gis.umn.edu</FONT></A><FONT =
face=3D"Courier New"=20
size=3D2>&gt;; &lt;</FONT><A href=3D"mailto:cstorozuk at shaw.ca"><FONT=20
face=3D"Courier New" size=3D2>cstorozuk at shaw.ca</FONT></A><FONT =
face=3D"Courier New"=20
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Sent: Monday, October 27, 2003 =
10:43=20
AM</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Subject: Re: [Mapserver-users] =
4.0=20
itemquery - layer and area of interest do not overlap</FONT></DIV></DIV>
<DIV><BR><FONT face=3D"Courier New" size=3D2></FONT></DIV><FONT =
face=3D"Courier New"=20
size=3D2>&gt; Chris, <BR>&gt; <BR>&gt; It could be that you are passing =
the=20
correct parameters, but that there<BR>&gt; is a problem with your=20
expression.&nbsp; If you provide more details, I would<BR>&gt; guess =
that the=20
list can help you out.<BR>&gt; <BR>&gt; David.<BR>&gt; <BR>&gt; David J. =

Fawcett<BR>&gt; MN Office of Environmental Assistance<BR>&gt; <BR>&gt;=20
&gt;&gt;&gt; Chris Storozuk &lt;</FONT><A =
href=3D"mailto:cstorozuk at shaw.ca"><FONT=20
face=3D"Courier New" size=3D2>cstorozuk at shaw.ca</FONT></A><FONT =
face=3D"Courier New"=20
size=3D2>&gt; 10/24/2003 8:10:03 PM &gt;&gt;&gt;<BR>&gt; Using MapServer =
4.0, when=20
doing an itemquery on a record I know exists,<BR>&gt; I am getting the=20
error:<BR>&gt; <BR>&gt; msQueryByAttributes(): Search returned no =
results. No=20
matching<BR>&gt; record(s) found, layer and area of interest do not =
overlap.=20
<BR>&gt; <BR>&gt; If I can say that the extents in the MAP area of my =
.map file=20
are<BR>&gt; absolutely sufficient to cause the queried feature to fall =
within=20
it,<BR>&gt; what else could cause this to happen? (I used Arcview's =
coordinates=20
to<BR>&gt; make sure the extent was correct by hovering over the =
top-left=20
and<BR>&gt; bottom-right corners of my shapefile, so I know the extents=20
are<BR>&gt; correct.)<BR>&gt; <BR>&gt; Thanks,<BR>&gt;=20
Chris</FONT></BODY></HTML>

------=_NextPart_000_0051_01C39C89.AB517200--




More information about the mapserver-users mailing list