<!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. " </DIV>
<DIV>Can anyone help me, or direct me to some examples, with querying
and displaying the results.</DIV>
<DIV> </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> </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> </DIV>
<DIV><FONT face=Arial size=2><?php<BR>dl("php_mapscript.so");</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>$point =
ms_newPointObj();<BR>$point->setxy($lon,$lat);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>$map =
ms_newMapObj("phpsoil.map");<BR>$map->setExtent($minx, $miny, $maxx,
$maxy);<BR>$layer =
$map->getlayerbyname(field);<BR>$layer->set("data","$filename");<BR>$layer2
=
$map->getlayerbyname(datap);<BR>$layer2->set("data","$pointshape");</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>$map->queryByPoint($point,MS_MULTIPLE,-1);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>?><BR></FONT></DIV></BODY></HTML>