本文整理了Java中org.locationtech.jts.geom.Point.intersects()
方法的一些代码示例,展示了Point.intersects()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Point.intersects()
方法的具体详情如下:
包路径:org.locationtech.jts.geom.Point
类名称:Point
方法名:intersects
暂无
代码示例来源:origin: geotools/geotools
public boolean intersects(Geometry g) {
return point.intersects(g);
}
代码示例来源:origin: locationtech/jts
public void testPredicatesReturnFalseForEmptyGeometries() {
Point p1 = new GeometryFactory().createPoint((Coordinate)null);
Point p2 = new GeometryFactory().createPoint(new Coordinate(5,5));
assertEquals(false, p1.equals(p2));
assertEquals(true, p1.disjoint(p2));
assertEquals(false, p1.intersects(p2));
assertEquals(false, p1.touches(p2));
assertEquals(false, p1.crosses(p2));
assertEquals(false, p1.within(p2));
assertEquals(false, p1.contains(p2));
assertEquals(false, p1.overlaps(p2));
assertEquals(false, p2.equals(p1));
assertEquals(true, p2.disjoint(p1));
assertEquals(false, p2.intersects(p1));
assertEquals(false, p2.touches(p1));
assertEquals(false, p2.crosses(p1));
assertEquals(false, p2.within(p1));
assertEquals(false, p2.contains(p1));
assertEquals(false, p2.overlaps(p1));
}
内容来源于网络,如有侵权,请联系作者删除!