[geos-devel] JTS GeometryCollection#apply(GeometryComponentFilter)

Sandro Santilli strk at keybit.net
Mon Aug 25 01:46:25 PDT 2014


On Mon, Aug 25, 2014 at 10:44:56AM +0200, Sandro Santilli wrote:
> Martin, I noticed that GeometryCollection#apply(GeometryComponentFilter)
> passes itself to the GeometryComponentFilter#filter function before
> passing it each and every component, is that a bug or intended behavior ?
> 
> I was trying to use a GeometryComponentFilter to iterate over each of
> the simple-typed components of a Geometry, but due to the above I'm getting
> the collection itself as one of the components.

I shall note that GeometryCollection#apply(GeometryFilter) has the same
implementation of the one taking GeometryCompomentFilter...

--strk;


More information about the geos-devel mailing list