[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-dev
Subject:    Re: [mapserver-dev] PHP Mapscript - Differences between whichShape
From:       Guillaume Sueur <no-reply () neogeo-online ! net>
Date:       2009-02-28 19:48:37
Message-ID: 49A99515.3000402 () neogeo-online ! net
[Download RAW message or body]

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@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
> 
> 
_______________________________________________
mapserver-dev mailing list
mapserver-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic