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>&nbsp;</DIV>
<DIV><FONT face=3DCourier size=3D2>LAYER<BR><SPAN=20
class=3D152050114-27092002>&nbsp;&nbsp;&nbsp; </SPAN>NAME&nbsp;<SPAN=20
class=3D152050114-27092002>"</SPAN>Ethiopia_Adminlevel1"<BR><SPAN=20
class=3D152050114-27092002>&nbsp;&nbsp;&nbsp; T</SPAN>YPE =
POLYGON<BR><SPAN=20
class=3D152050114-27092002>&nbsp;&nbsp;&nbsp; </SPAN>STATUS ON<BR><SPAN=20
class=3D152050114-27092002>&nbsp;&nbsp;&nbsp; </SPAN>DATA=20
"ethiopia_adminlevel1"<BR><SPAN =
class=3D152050114-27092002>&nbsp;&nbsp;&nbsp;=20
</SPAN>CLASS<BR><SPAN=20
class=3D152050114-27092002>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</SPAN>NAME=20
"Ethiopia"<BR><SPAN=20
class=3D152050114-27092002>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>OUTLINECOLOR 128 0 0&nbsp;<BR><SPAN=20
class=3D152050114-27092002>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN>TEMPLATE "ethiopia_adminlevel1_query.html"</FONT></DIV>
<DIV><FONT><FONT face=3DCourier><FONT size=3D2><SPAN=20
class=3D152050114-27092002>&nbsp;&nbsp;&nbsp;=20
</SPAN>END<BR></FONT></FONT></FONT><FONT face=3DCourier><FONT =
size=3D2><SPAN=20
class=3D152050114-27092002>&nbsp;&nbsp;&nbsp; </SPAN>HEADER=20
'ethiopia_adminlevel1_header.html'<BR><SPAN=20
class=3D152050114-27092002>&nbsp;&nbsp;&nbsp; </SPAN>FOOTER=20
'ethiopia_adminlevel1_footer.html'<BR><SPAN=20
class=3D152050114-27092002>&nbsp;&nbsp;&nbsp; =
</SPAN>TOLERANCE&nbsp;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>&nbsp;</DIV>
<DIV><SPAN lang=3Dfr><FONT face=3DVerdana=20
size=3D2>David&nbsp;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&nbsp;:</B> Mike Smith=20
  [mailto:nospam@cnrit.tamu.edu] <BR><B>Envoy=E9&nbsp;:</B> vendredi 27 =
septembre=20
  2002 13:29<BR><B>=C0&nbsp;:</B> Gunter.Rieth@stadt.mainz.de;=20
  sig@manobi.sn<BR><B>Cc&nbsp;:</B>=20
  mapserver-users@lists.gis.umn.edu<BR><B>Objet&nbsp;:</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. &nbsp;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. =
&nbsp;I=20
  AM, however, using plenty of Javascript to control my page and that =
may be=20
  where the problem lies. &nbsp;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
    &nbsp; to </FONT><FONT face=3D"Courier New" size=3D2>STATUS ON or =
DEFAULT &nbsp;=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">&lt;nospam@cnrit.tamu.edu&gt;</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>&nbsp; &nbsp; &nbsp; &nbsp;=20
          </FONT><BR><FONT face=3Dsans-serif size=3D1>&nbsp; &nbsp; =
&nbsp; &nbsp;=20
          An: &nbsp; &nbsp; &nbsp;=20
          &nbsp;mapserver-users@lists.gis.umn.edu</FONT><BR><FONT=20
          face=3Dsans-serif size=3D1>&nbsp; &nbsp; &nbsp; &nbsp; Kopie: =
&nbsp;=20
          &nbsp; &nbsp; &nbsp;</FONT><BR><FONT face=3Dsans-serif =
size=3D1>&nbsp;=20
          &nbsp; &nbsp; &nbsp; Thema: &nbsp; &nbsp; &nbsp;=20
          &nbsp;[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? &nbsp;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>&nbsp;HEADER =
'frames_header.html'<BR>&nbsp;TEMPLATE=20
    'frames.html'<BR>&nbsp;FOOTER=20
    'frames_footer.html'<BR>.<BR>.<BR>.<BR>END<BR><BR># Query Map=20
    Object<BR>QUERYMAP<BR>&nbsp;SIZE 200 200<BR>&nbsp;STATUS =
ON<BR>&nbsp;STYLE=20
    HILITE<BR>&nbsp;COLOR 51 102 255<BR>END<BR><BR># Layer I'm trying to =

    query<BR>LAYER<BR>&nbsp;NAME "Ethiopia_Adminlevel1"<BR>&nbsp;TYPE=20
    Polygon<BR>&nbsp;STATUS off<BR>&nbsp;GROUP Ethiopia<BR>&nbsp;DATA=20
    "ethiopia_adminlevel1"<BR>&nbsp;LABELITEM 'Name'<BR>&nbsp;HEADER=20
    'ethiopia_adminlevel1_header.html'<BR>&nbsp;FOOTER=20
    'ethiopia_adminlevel1_footer.html'<BR>&nbsp;TOLERANCEUNITS=20
    kilometers<BR>&nbsp;TOLERANCE 5<BR>&nbsp;DUMP TRUE<BR>&nbsp; =
&nbsp;CLASSITEM=20
    'Name'<BR>&nbsp; &nbsp; &nbsp;CLASS<BR>&nbsp; &nbsp; &nbsp; =
&nbsp;EXPRESSION=20
    'Addis Ababa'<BR>&nbsp; &nbsp; &nbsp; &nbsp;COLOR 210 210 =
210<BR>&nbsp;=20
    &nbsp; &nbsp; &nbsp;OUTLINECOLOR 0 0 0<BR>&nbsp; &nbsp; &nbsp;=20
    &nbsp;TEMPLATE 'ethiopia_adminlevel1_query.html'<BR>&nbsp; &nbsp; =
END=20
    &nbsp;# 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! &nbsp;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--