Re: Name for line intersects

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Name for line intersects

Paul Austin-3
Overlaps is not right because overlaps will not be true in the case where one of the lines has "all points in common" with the other line.

overlaps = false
+-------+
+-------+

overlaps = false
+-------+
  +-----+

overlaps = true
+-------+
  +--------+

[hidden email] wrote:
According to the 9-intersection model, wouldn't that be 'overlaps'?

See also the comments in Geometry.overlaps(Geometry):

"The geometries have some but not all points in common,
they have the same dimension,
and the intersection of the interiors of the two geometries has
the same dimension as the geometries themselves."

Matthias

  
I'm trying to think of a name to describe and intersection between two
lines, where the intersection between the two is a line (so it ignores any
point intesections). This would be detected using the following.

IntersectionMatrix relate = line1.relate(line2);
if (relate.get(0, 0) == Dimension.L) {
 return true
} else {
 return false;
}

Can anyone think of a catchy name to describe an operator implementing this?
Something like intersectsLine.

Cheers,
Paul
_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel

    


_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
  

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Loading...