Dear all,

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:

LAYER
  NAME ...
  DATA ...
  TYPE point
  STATUS on
  TEMPLATE dummy
  CLASS
    COLOR 200 0 0
  END
END

My code snippet is:

$rect=ms_newRectObj();
$rect->setextent(...);
if (@$layer->queryByRect($rect)==MS_SUCCESS) {
  print $layer->getNumResults();
} else {
  print "Not found";
}

It always print "Not found". What I do wrong or I couldn't query point layer. 
Have you any advices with this problem?

Thanks in advance.
Krung



 
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091

Reply via email to