[mapserver-dev] PHP Mapscript - Differences between whichShape and queryByShape

Nicol Hermann mapserver at geoworld.de
Sat Feb 28 01:35:03 EST 2009


Hello Devs,

i have a question concerning the function of the method
$layer->whichShapes($Map->extent);
of PHP mapscript.
As far as i understand the documentation
(http://mapserver.org/mapscript/php/) the method returns all shapes
within a given area (in this case $Map->extent).
I wonder what are the differences to the method
$layer->queryByShape( $shpobj );
$shpobj is defined as 'MS_SHAPE_POLYGON' and is constructed with the
same values like $Map->extent
To my understanding both methods should return the same number of query
results.
Is this assumption correct?
Many thanks for your assistance.

best regards
Nicol



More information about the mapserver-dev mailing list