org.locationtech.jts.geom.Point.disjoint()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(124)

本文整理了Java中org.locationtech.jts.geom.Point.disjoint()方法的一些代码示例,展示了Point.disjoint()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Point.disjoint()方法的具体详情如下:
包路径:org.locationtech.jts.geom.Point
类名称:Point
方法名:disjoint

Point.disjoint介绍

暂无

代码示例

代码示例来源:origin: geotools/geotools

public boolean disjoint(Geometry g) {
  return point.disjoint(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));
}

相关文章