<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana, helvetica, sans-serif;font-size:12pt"><DIV>Dear all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I want to query points inside RectObj, but no luck. I'm ver sure that there are points inside this RectObj's bounds. My map's layer was defined as:</DIV>
<DIV>&nbsp;</DIV>
<DIV>LAYER<BR>&nbsp; NAME ...<BR>&nbsp; DATA ...<BR>&nbsp; TYPE point<BR>&nbsp; STATUS on<BR>&nbsp; TEMPLATE dummy<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; COLOR 200 0 0<BR>&nbsp; END<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>My code snippet is:</DIV>
<DIV>&nbsp;</DIV>
<DIV>$rect=ms_newRectObj();<BR>$rect-&gt;setextent(...);</DIV>
<DIV>if (@$layer-&gt;queryByRect($rect)==MS_SUCCESS) {<BR>&nbsp; print $layer-&gt;getNumResults();<BR>} else {<BR>&nbsp; print "Not found";<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>It always print "Not found". What I do wrong or I couldn't query point layer. Have you any advices with this problem?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance.<BR>Krung<BR></DIV></div><br>
      <hr size=1>Luggage? GPS? Comic books? <br>
Check out fitting <a href="http://us.rd.yahoo.com/evt=48249/*http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz"> gifts for grads</a> at Yahoo! Search.</body></html>