Antwort: [mapserver-users] msQueryByPoint(): Search returned no results
David Boggio
sig@manobi.sn
Fri, 27 Sep 2002 14:07:59 -0000
This is a multi-part message in MIME format.
------=_NextPart_000_001D_01C2662F.48D2DD30
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Mike,
I think the problem is in your map file, because the query occures, and
returns no result.
You should try to set up a very simple map file, and see if your query
works.
Something like this is very basic and should work :
=20
LAYER
NAME "Ethiopia_Adminlevel1"
TYPE POLYGON
STATUS ON
DATA "ethiopia_adminlevel1"
CLASS
NAME "Ethiopia"
OUTLINECOLOR 128 0 0=20
TEMPLATE "ethiopia_adminlevel1_query.html"
END
HEADER 'ethiopia_adminlevel1_header.html'
FOOTER 'ethiopia_adminlevel1_footer.html'
TOLERANCE 5
END
What happens then?
=20
David Boggio
-----Message d'origine-----
De : Mike Smith [mailto:nospam@cnrit.tamu.edu]=20
Envoy=E9 : vendredi 27 septembre 2002 13:29
=C0 : Gunter.Rieth@stadt.mainz.de; sig@manobi.sn
Cc : mapserver-users@lists.gis.umn.edu
Objet : Re: Antwort: [mapserver-users] msQueryByPoint(): Search returned
no results
Thank you two very much for the response, but I have tried this just now
and it doesn't change a thing. If anybody's curious to see the page an
view what I'm talking about it can be found at:
HYPERLINK
"http://cnrit.tamu.edu/maps/map_init.html"http://cnrit.tamu.edu/maps/map
_init.html
When you get to that page, click on the very bottom button...the one
that says "(FRAMES VERSION)" on it.
And yes, I'm running mapserver in a "frames" web page, but I'm not using
mapscript, just the regular CGI binary. I AM, however, using plenty of
Javascript to control my page and that may be where the problem lies.
I'm just trying to figure out what I'm not setting properly that's
killing my querying ability!
Thanks for the help!
HYPERLINK
"mailto:Gunter.Rieth@stadt.mainz.de"Gunter.Rieth@stadt.mainz.de wrote:
How about setting STATUS off to STATUS ON or DEFAULT ???
Gunter
Mike Smith HYPERLINK
"mailto:nospam@cnrit.tamu.edu"<nospam@cnrit.tamu.edu>
Gesendet von: HYPERLINK
"mailto:owner-mapserver-users@lists.gis.umn.edu"owner-mapserver-users@li
sts.gis.umn.edu=20
26.09.2002 20:48
=20
An: mapserver-users@lists.gis.umn.edu
Kopie: =20
Thema: [mapserver-users] msQueryByPoint(): Search
returned no results=09
Can somebody please enlighten me as to all the pieces required in order=20
to make a query happen? I've got one simple mapserver page that allows=20
queries, but my more advanced page gives me the following error every=20
time I try to query (or "nquery") anything:
msQueryByPoint(): Search returned no results. No matching record(s)
found
I've got the following code in my map file:
# Web Object
WEB
HEADER 'frames_header.html'
TEMPLATE 'frames.html'
FOOTER 'frames_footer.html'
.
.
.
END
# Query Map Object
QUERYMAP
SIZE 200 200
STATUS ON
STYLE HILITE
COLOR 51 102 255
END
# Layer I'm trying to query
LAYER
NAME "Ethiopia_Adminlevel1"
TYPE Polygon
STATUS off
GROUP Ethiopia
DATA "ethiopia_adminlevel1"
LABELITEM 'Name'
HEADER 'ethiopia_adminlevel1_header.html'
FOOTER 'ethiopia_adminlevel1_footer.html'
TOLERANCEUNITS kilometers
TOLERANCE 5
DUMP TRUE
CLASSITEM 'Name'
CLASS
EXPRESSION 'Addis Ababa'
COLOR 210 210 210
OUTLINECOLOR 0 0 0
TEMPLATE 'ethiopia_adminlevel1_query.html'
END # CLASS
.
.
.
END
All the header, footer, and query HTML files exist and have good=20
variables in them based on what's actually in my shape files, the shapes
show up fine in my map, but I cannot query ANYTHING! Any ideas?!
Thanks in advance!
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002
=20
------=_NextPart_000_001D_01C2662F.48D2DD30
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">
<TITLE>Message</TITLE>
<META content=3D"MSHTML 6.00.2719.2200" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DCourier size=3D2><SPAN class=3D152050114-27092002>Hi=20
Mike,</SPAN></FONT></DIV>
<DIV><FONT face=3DCourier size=3D2><SPAN class=3D152050114-27092002>I =
think the=20
problem is in your map file, because the query occures, and returns no=20
result.</SPAN></FONT></DIV>
<DIV><FONT face=3DCourier size=3D2><SPAN class=3D152050114-27092002>You =
should try to=20
set up a very simple map file, and see if your query =
works.</SPAN></FONT></DIV>
<DIV><FONT face=3DCourier size=3D2><SPAN =
class=3D152050114-27092002>Something like=20
this is very basic and should work :</SPAN></FONT></DIV>
<DIV><FONT face=3DCourier size=3D2></FONT> </DIV>
<DIV><FONT face=3DCourier size=3D2>LAYER<BR><SPAN=20
class=3D152050114-27092002> </SPAN>NAME <SPAN=20
class=3D152050114-27092002>"</SPAN>Ethiopia_Adminlevel1"<BR><SPAN=20
class=3D152050114-27092002> T</SPAN>YPE =
POLYGON<BR><SPAN=20
class=3D152050114-27092002> </SPAN>STATUS ON<BR><SPAN=20
class=3D152050114-27092002> </SPAN>DATA=20
"ethiopia_adminlevel1"<BR><SPAN =
class=3D152050114-27092002> =20
</SPAN>CLASS<BR><SPAN=20
class=3D152050114-27092002> =
</SPAN>NAME=20
"Ethiopia"<BR><SPAN=20
class=3D152050114-27092002> =20
</SPAN>OUTLINECOLOR 128 0 0 <BR><SPAN=20
class=3D152050114-27092002> =20
</SPAN>TEMPLATE "ethiopia_adminlevel1_query.html"</FONT></DIV>
<DIV><FONT><FONT face=3DCourier><FONT size=3D2><SPAN=20
class=3D152050114-27092002> =20
</SPAN>END<BR></FONT></FONT></FONT><FONT face=3DCourier><FONT =
size=3D2><SPAN=20
class=3D152050114-27092002> </SPAN>HEADER=20
'ethiopia_adminlevel1_header.html'<BR><SPAN=20
class=3D152050114-27092002> </SPAN>FOOTER=20
'ethiopia_adminlevel1_footer.html'<BR><SPAN=20
class=3D152050114-27092002> =
</SPAN>TOLERANCE 5<SPAN=20
class=3D152050114-27092002></SPAN><BR>END<BR></FONT></FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2><SPAN class=3D152050114-27092002>What =
happens=20
then?</SPAN></FONT></DIV>
<DIV><SPAN lang=3Dfr><FONT face=3DVerdana =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN lang=3Dfr><FONT face=3DVerdana=20
size=3D2>David Boggio<BR></DIV></FONT></SPAN>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=3DOutlookMessageHeader lang=3Dfr dir=3Dltr =
align=3Dleft><FONT face=3DTahoma=20
size=3D2>-----Message d'origine-----<BR><B>De :</B> Mike Smith=20
[mailto:nospam@cnrit.tamu.edu] <BR><B>Envoy=E9 :</B> vendredi 27 =
septembre=20
2002 13:29<BR><B>=C0 :</B> Gunter.Rieth@stadt.mainz.de;=20
sig@manobi.sn<BR><B>Cc :</B>=20
mapserver-users@lists.gis.umn.edu<BR><B>Objet :</B> Re: Antwort:=20
[mapserver-users] msQueryByPoint(): Search returned no=20
results<BR><BR></FONT></DIV>Thank you two very much for the response, =
but I=20
have tried this just now and it doesn't change a thing. If =
anybody's=20
curious to see the page an view what I'm talking about it can be found =
at:<BR><BR><A class=3Dmoz-txt-link-freetext=20
=
href=3D"http://cnrit.tamu.edu/maps/map_init.html">http://cnrit.tamu.edu/m=
aps/map_init.html</A><BR><BR>When=20
you get to that page, click on the very bottom button...the one that =
says=20
"(FRAMES VERSION)" on it.<BR><BR>And yes, I'm running mapserver in a =
"frames"=20
web page, but I'm not using mapscript, just the regular CGI binary. =
I=20
AM, however, using plenty of Javascript to control my page and that =
may be=20
where the problem lies. I'm just trying to figure out what I'm =
not=20
setting properly that's killing my querying ability!<BR><BR>Thanks for =
the=20
help!<BR><BR><BR><BR><A class=3Dmoz-txt-link-abbreviated=20
=
href=3D"mailto:Gunter.Rieth@stadt.mainz.de">Gunter.Rieth@stadt.mainz.de</=
A>=20
wrote:<BR>
<BLOCKQUOTE =
cite=3Dmid:OF1965CCDF.17CA101D-ONC1256C41.002FC922@stadt.mainz.de=20
type=3D"cite"><BR><FONT face=3Dsans-serif size=3D2>How about setting =
</FONT><FONT=20
face=3D"Courier New" size=3D2>STATUS off</FONT><FONT =
face=3Dsans-serif size=3D2>=20
to </FONT><FONT face=3D"Courier New" size=3D2>STATUS ON or =
DEFAULT =20
???</FONT><BR><BR><BR><FONT face=3D"Courier New"=20
size=3D2>Gunter</FONT><BR><BR><BR><BR>
<TABLE width=3D"100%">
<TBODY>
<TR vAlign=3Dtop>
<TD><BR></TD>
<TD><FONT face=3Dsans-serif size=3D1><B>Mike Smith <A=20
class=3Dmoz-txt-link-rfc2396E=20
=
href=3D"mailto:nospam@cnrit.tamu.edu"><nospam@cnrit.tamu.edu></A></=
B></FONT><BR><FONT=20
face=3Dsans-serif size=3D1>Gesendet von: <A =
class=3Dmoz-txt-link-abbreviated=20
=
href=3D"mailto:owner-mapserver-users@lists.gis.umn.edu">owner-mapserver-u=
sers@lists.gis.umn.edu</A></FONT>=20
<P><FONT face=3Dsans-serif size=3D1>26.09.2002 =
20:48</FONT><BR></P></TD>
<TD><FONT face=3DArial size=3D1> =20
</FONT><BR><FONT face=3Dsans-serif size=3D1> =
=20
An: =20
mapserver-users@lists.gis.umn.edu</FONT><BR><FONT=20
face=3Dsans-serif size=3D1> Kopie: =
=20
</FONT><BR><FONT face=3Dsans-serif =
size=3D1> =20
Thema: =20
[mapserver-users] msQueryByPoint(): Search returned no=20
results</FONT></TD></TR></TBODY></TABLE><BR><BR><BR><FONT =
face=3D"Courier New"=20
size=3D2>Can somebody please enlighten me as to all the pieces =
required in=20
order <BR>to make a query happen? I've got one simple =
mapserver page=20
that allows <BR>queries, but my more advanced page gives me the =
following=20
error every <BR>time I try to query (or "nquery")=20
anything:<BR><BR>msQueryByPoint(): Search returned no results. No =
matching=20
record(s) found<BR><BR>I've got the following code in my map =
file:<BR><BR>#=20
Web Object<BR>WEB<BR> HEADER =
'frames_header.html'<BR> TEMPLATE=20
'frames.html'<BR> FOOTER=20
'frames_footer.html'<BR>.<BR>.<BR>.<BR>END<BR><BR># Query Map=20
Object<BR>QUERYMAP<BR> SIZE 200 200<BR> STATUS =
ON<BR> STYLE=20
HILITE<BR> COLOR 51 102 255<BR>END<BR><BR># Layer I'm trying to =
query<BR>LAYER<BR> NAME "Ethiopia_Adminlevel1"<BR> TYPE=20
Polygon<BR> STATUS off<BR> GROUP Ethiopia<BR> DATA=20
"ethiopia_adminlevel1"<BR> LABELITEM 'Name'<BR> HEADER=20
'ethiopia_adminlevel1_header.html'<BR> FOOTER=20
'ethiopia_adminlevel1_footer.html'<BR> TOLERANCEUNITS=20
kilometers<BR> TOLERANCE 5<BR> DUMP TRUE<BR> =
CLASSITEM=20
'Name'<BR> CLASS<BR> =
EXPRESSION=20
'Addis Ababa'<BR> COLOR 210 210 =
210<BR> =20
OUTLINECOLOR 0 0 0<BR> =20
TEMPLATE 'ethiopia_adminlevel1_query.html'<BR> =
END=20
# CLASS<BR>.<BR>.<BR>.<BR>END<BR><BR>All the header, footer, =
and query=20
HTML files exist and have good <BR>variables in them based on what's =
actually in my shape files, the shapes <BR>show up fine in my map, =
but I=20
cannot query ANYTHING! Any ideas?!<BR><BR>Thanks in=20
advance!<BR><BR></FONT><BR><BR></BLOCKQUOTE><BR><BR>
<P><FONT size=3D2>---<BR>Incoming mail is certified Virus =
Free.<BR>Checked by=20
AVG anti-virus system (http://www.grisoft.com).<BR>Version: 6.0.391 / =
Virus=20
Database: 222 - Release Date:=20
19/09/2002<BR></FONT></P></BLOCKQUOTE></BODY></HTML>
<BR>
<P><FONT SIZE=3D2>---<BR>
Outgoing mail is certified Virus Free.<BR>
Checked by AVG anti-virus system (http://www.grisoft.com).<BR>
Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002<BR>
</FONT> </P>
------=_NextPart_000_001D_01C2662F.48D2DD30--