Here is a skill testing question for the jts-devel list. I think all of the following alternatives perform the same test .. what do you think would perform faster?

a) return geometry.disjoint( geometry2 ) || geometry.touches( geometry2 )

b) IntersectionMatrix matrix = geometry.relate( geometry2 );
   return matrix.isDisjoint() || matrix.isTouches();

c) return geometry.relate( geometry2, "F********" )

d) return !geometry.overlaps( geometry2 )

I will write a test harness for this; but the discussion may be interesting.
Jody
_______________________________________________
jts-devel mailing list
jts-devel@lists.jump-project.org
http://lists.refractions.net/mailman/listinfo/jts-devel

Reply via email to