[mapserver-users] PHP mapscript $shape->buffer() takes a longtime
Daniel Morissette
dmorissette at mapgears.com
Wed Nov 18 06:34:09 PST 2009
Worth Lutz wrote:
> I'm learning a lot here.
>
> I now understand how to get the buffered geometry quickly.
>
> I am using the buffered geometry to use PHP mapscript to select parcel
> intersecting the buffered geometry.
>
> $layer->queryByShape($bufferedShape);
>
> Are you telling me that there is a better/faster way to do this?
>
Yes, queryByShape() respects the TOLERANCE/TOLERANCEUNITS layer
parameters. So you could set the TOLERANCE to your buffer value and then
queryByShape() on the original feature will select all features that
intersect the buffer.
--
Daniel Morissette
http://www.mapgears.com/
More information about the MapServer-users
mailing list