<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial><FONT size=2>I am trying to use php mapscript to query a 
map file using </FONT><FONT size=2>queryByPoint and all I ever get 
is</FONT></FONT></DIV>
<DIV><STRONG>"Warning</STRONG>: MapServer Error in msQueryByPoint(): No matching 
record(s) found.&nbsp;"&nbsp;</DIV>
<DIV>Can anyone help me, or direct me to&nbsp;some examples,&nbsp;with querying 
and displaying the results.</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The code I am using is below where $filename and 
$pointshape are the names of the shape files used and $minx, $miny, $maxx, $maxy 
is the extent passed in..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thank you for any help</FONT></DIV>
<DIV><FONT face=Arial size=2>Aaron</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&lt;?php<BR>dl("php_mapscript.so");</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>$point = 
ms_newPointObj();<BR>$point-&gt;setxy($lon,$lat);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>$map = 
ms_newMapObj("phpsoil.map");<BR>$map-&gt;setExtent($minx, $miny, $maxx, 
$maxy);<BR>$layer = 
$map-&gt;getlayerbyname(field);<BR>$layer-&gt;set("data","$filename");<BR>$layer2 

$map-&gt;getlayerbyname(datap);<BR>$layer2-&gt;set("data","$pointshape");</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>$map-&gt;queryByPoint($point,MS_MULTIPLE,-1);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>?&gt;<BR></FONT></DIV></BODY></HTML>