本文整理了Java中org.locationtech.jts.geom.Point.getDimension()
方法的一些代码示例,展示了Point.getDimension()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Point.getDimension()
方法的具体详情如下:
包路径:org.locationtech.jts.geom.Point
类名称:Point
方法名:getDimension
暂无
代码示例来源:origin: geotools/geotools
public int getDimension() {
return point.getDimension();
}
代码示例来源:origin: geotools/geotools
assertTrue(value instanceof Point);
Point pt = (Point) value;
assertEquals(pt.getDimension(), 0);
assertEquals(pt.getCoordinate().x, 5.0, 0);
assertEquals(pt.getCoordinate().y, 2.5, 0);
assertTrue(value instanceof Point);
pt = (Point) value;
assertEquals(pt.getDimension(), 0);
assertEquals(pt.getCoordinate().x, 5.0, 0);
assertEquals(pt.getCoordinate().y, 2.5, 0);
代码示例来源:origin: locationtech/jts
public void testEmptyPoint() throws Exception {
Point p = geometryFactory.createPoint((Coordinate)null);
assertEquals(0, p.getDimension());
assertEquals(new Envelope(), p.getEnvelopeInternal());
assertTrue(p.isSimple());
try {
p.getX();
assertTrue(false);
}
catch (IllegalStateException e1) {
}
try {
p.getY();
assertTrue(false);
}
catch (IllegalStateException e2) {
}
assertEquals("POINT EMPTY", p.toString());
assertEquals("POINT EMPTY", p.toText());
}
内容来源于网络,如有侵权,请联系作者删除!