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

x33g5p2x  于2022-01-19 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(129)

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

Geometry.getBoundaryDimension介绍

[英]Returns the dimension of this Geometrys 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());
 }
}

相关文章