[geos-devel] BUG: relate(g1,g2) crashes with GEOMETRYCOLLECTION?
David Blasby
dblasby at refractions.net
Tue Apr 8 16:42:31 EDT 2003
Martin Davis wrote:
>Yep. Neither GEOS nor JTS support GeometryCollections as arguments to relate. This is partly because the semantics aren't very well defined, and partly because the obvious semantics [ X.relate(GC) = X.relate(union(GC.components) ] would make the operation non-robust.
>
>That said, we or you could always implement the above semantics fairly easily...
>
Its unfortunate that the spec doesnt tell you what to do in the case of
GEOMETRYCOLLECTIONs.
I've also noticed that overlaps(g,g) is FALSE!
dave
More information about the geos-devel
mailing list