<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> </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> </DIV>
<DIV>LAYER<BR> NAME ...<BR> DATA ...<BR> TYPE point<BR> STATUS on<BR> TEMPLATE dummy<BR> CLASS<BR> COLOR 200 0 0<BR> END<BR>END</DIV>
<DIV> </DIV>
<DIV>My code snippet is:</DIV>
<DIV> </DIV>
<DIV>$rect=ms_newRectObj();<BR>$rect->setextent(...);</DIV>
<DIV>if (@$layer->queryByRect($rect)==MS_SUCCESS) {<BR> print $layer->getNumResults();<BR>} else {<BR> print "Not found";<BR>}</DIV>
<DIV> </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> </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>