本文整理了Java中org.locationtech.jts.geom.Geometry.getBoundaryDimension()
方法的一些代码示例,展示了Geometry.getBoundaryDimension()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Geometry.getBoundaryDimension()
方法的具体详情如下:
包路径:org.locationtech.jts.geom.Geometry
类名称:Geometry
方法名:getBoundaryDimension
[英]Returns the dimension of this Geometry
s inherent boundary.
[中]返回此Geometry
的固有边界的维度。
代码示例来源:origin: geotools/geotools
public static int boundaryDimension(Geometry arg0) {
if (arg0 == null) return -1;
Geometry _this = arg0;
return _this.getBoundaryDimension();
}
代码示例来源:origin: geotools/geotools
public int getBoundaryDimension() {
return geometry.getBoundaryDimension();
}
代码示例来源:origin: locationtech/jts
public int getBoundaryDimension() {
int dimension = Dimension.FALSE;
for (int i = 0; i < geometries.length; i++) {
dimension = Math.max(dimension, ((Geometry) geometries[i]).getBoundaryDimension());
}
return dimension;
}
代码示例来源:origin: locationtech/jts
/**
* If the Geometries are disjoint, we need to enter their dimension and
* boundary dimension in the Ext rows in the IM
*/
private void computeDisjointIM(IntersectionMatrix im)
{
Geometry ga = arg[0].getGeometry();
if (! ga.isEmpty()) {
im.set(Location.INTERIOR, Location.EXTERIOR, ga.getDimension());
im.set(Location.BOUNDARY, Location.EXTERIOR, ga.getBoundaryDimension());
}
Geometry gb = arg[1].getGeometry();
if (! gb.isEmpty()) {
im.set(Location.EXTERIOR, Location.INTERIOR, gb.getDimension());
im.set(Location.EXTERIOR, Location.BOUNDARY, gb.getBoundaryDimension());
}
}
内容来源于网络,如有侵权,请联系作者删除!