Geometry g3 = wkt.read("LINESTRING(1 2,2 2,3 2)");
LineString ls3 = (LineString) g3;
Geometry g4 = wkt.read("LINESTRING(2 0,2 2,3 3)");
LineString ls4 = (LineString) g4;
IntersectionMatrix rt = ComputeImFactory.getInstance().getImComputer(
ls, ls2).getIM();
// LineString_LineString l2l = new LineString_LineString(ls, ls2);
// IntersectionMatrix rt = l2l.getIM();
assertTrue(rt.match(IntersectionMatrix.OverlapPatternLL));
IntersectionMatrix rt2 = ComputeImFactory.getInstance().getImComputer(
ls3, ls).getIM();
assertTrue(rt2.match(IntersectionMatrix.WithinsPattern));
IntersectionMatrix rt3 = ComputeImFactory.getInstance().getImComputer(
ls4, ls).getIM();
assertTrue(rt3.match(IntersectionMatrix.CrossesPatternLL));
}