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

Chris Storozuk cstorozuk at shaw.ca
Mon Oct 27 10:55:59 PST 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> </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> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>MAP</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2> SHAPEPATH=20
"../../../data"<BR> SIZE 300 300<BR> EXTENT 145000 6688000 =
885000=20
5400000<BR>...</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>WEB<BR>  TEMPLATE=20
alberta.html<BR>END</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2> LAYER<BR>  NAME=20
alberta<BR>  DATA alberta_10tm<BR>  STATUS=20
default<BR>  TYPE POLYGON<BR>  =20
CLASS<BR>     OUTLINECOLOR 212 212=20
212<BR>     COLOR 0 0 0<BR>     =
TEMPLATE=20
'case1_template.html'<BR>   =
END<BR> END<BR>...</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT> </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><input type=3D"hidden" =
name=3D"mode"=20
value=3D"itemquery"><BR><input type=3D"hidden" name=3D"qitem"=20
value=3D"ID"><BR><input type=3D"hidden" name=3D"qlayer"=20
value=3D"alberta"></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><select name=3D"qstring" size=3D"1"></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><option=20
value=3D300>300</option></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> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>The URL request =
(simplified) after=20
submitting the form is 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&map_web_imagepath=3D...queries&map_web_i=
mageurl=3D...queries&mode=3Ditemquery&qitem=3DID&qlayer=3Dalb=
erta&qstring=3D300">http://24.79.12.230/scripts/mapserv.exe?mapserv=3D=
...mapserv.exe&map=3D...alberta.map&map_web_imagepath=3D...querie=
s&map_web_imageurl=3D...queries&mode=3Ditemquery&qitem=3DID&a=
mp;qlayer=3Dalberta&qstring=3D300</A></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT> </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> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Chris</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>----- Original Message ----- =
</FONT>
<DIV><FONT face=3D"Courier New" size=3D2>From: "David Fawcett" =
<</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>></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>To: <</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>>; <</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>></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>> Chris, <BR>> <BR>> It could be that you are passing =
the=20
correct parameters, but that there<BR>> is a problem with your=20
expression.  If you provide more details, I would<BR>> guess =
that the=20
list can help you out.<BR>> <BR>> David.<BR>> <BR>> David J. =

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

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




More information about the MapServer-users mailing list