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

Guillaume Sueur no-reply at neogeo-online.net
Sat Feb 28 14:48:37 EST 2009


Hi Nicol,

In the first case, whichShapes uses a rectObj, where the queryByShape
will use any kind of polygon. But I would be interested in knowing the
difference between whichShapes and queryByRect ! Does whichShapes
compute the intersection of bounding boxes instead of shapes themselves ?

Regards,

Guillaume


Nicol Hermann a écrit :
> 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
> 
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
> 
> 


More information about the mapserver-dev mailing list