Couldn't queryByRect
Krung Saengpole
saengpole at YAHOO.COM
Tue Jun 12 10:59:06 PDT 2007
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070612/659d20a2/attachment.htm>
More information about the MapServer-users
mailing list