com.vividsolutions.jts.geom.Polygon.geometryChanged()方法的使用及代码示例

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

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

Polygon.geometryChanged介绍

暂无

代码示例

代码示例来源:origin: com.vividsolutions/jts

public void apply(CoordinateSequenceFilter filter) 
{
   shell.apply(filter);
  if (! filter.isDone()) {
   for (int i = 0; i < holes.length; i++) {
    holes[i].apply(filter);
    if (filter.isDone()) 
     break;
   }
  }
  if (filter.isGeometryChanged())
   geometryChanged();
  }

代码示例来源:origin: org.geotools/gt-render

public void geometryChanged() {
  polygon.geometryChanged();
}

代码示例来源:origin: org.orbisgis/mapeditor

public Polygon moveJTSTo(double x, double y)
    throws CannotChangeGeometryException {
  Polygon p = (Polygon) geometry.clone();
  Coordinate[] coords;
  if (holeIndex == -1) {
    coords = p.getCoordinates();
  } else {
    coords = p.getInteriorRingN(holeIndex).getCoordinates();
  }
  coords[vertexIndex].x = x;
  coords[vertexIndex].y = y;
  if (vertexIndex == 0) {
    coords[coords.length - 1].x = coords[0].x;
    coords[coords.length - 1].y = coords[0].y;
  }
  p.geometryChanged();
  return p;
}

代码示例来源:origin: com.vividsolutions/jts-core

public void apply(CoordinateSequenceFilter filter) 
{
   shell.apply(filter);
  if (! filter.isDone()) {
   for (int i = 0; i < holes.length; i++) {
    holes[i].apply(filter);
    if (filter.isDone()) 
     break;
   }
  }
  if (filter.isGeometryChanged())
   geometryChanged();
  }

代码示例来源:origin: com.googlecode.jaitools/jt-vectorbinarize

/**
   * Updates the bounds of the rectangle used to test inclusion in the 
   * reference {@code PreparedGeometry}.
   * 
   * @param x origin X ordinate
   * @param y origin Y ordinate
   */
  private void updateTestRect(int x, int y) {
    final double delta = (coordType == PixelCoordType.CENTER ? 0.5 : 0.0);
    testRectCS.setXY(0, x + delta, y + delta);
    testRectCS.setXY(1, x + delta, y + tileHeight - delta);
    testRectCS.setXY(2, x + tileWidth - delta, y + tileHeight - delta);
    testRectCS.setXY(3, x + tileWidth - delta, y + delta);
    testRectCS.setXY(4, x + delta, y + delta);
    testRect.geometryChanged();
  }
}

代码示例来源:origin: com.googlecode.jaitools/jt-utils

/**
 * Helper function for contains and intersects methods.
 * 
 * @param x rectangle origin X ordinate
 * @param y rectangle origin Y ordinate
 * @param w rectangle width
 * @param h rectangle height
 */
private void setTestRect(double x, double y, double w, double h) {
  testRectCS.setXY(0, x + delta, y + delta);
  testRectCS.setXY(1, x + delta, y + h - delta);
  testRectCS.setXY(2, x + w - delta, y + h - delta);
  testRectCS.setXY(3, x + w - delta, y + delta);
  testRectCS.setXY(4, x + delta, y + delta);
  testRect.geometryChanged();
}

代码示例来源:origin: org.geotools/gt2-render

poly.geometryChanged();// djb -- jessie should do this during
      poly.geometryChanged();
  clip = EnhancedPrecisionOp.intersection(poly, bbox);
} catch (Exception e) {

代码示例来源:origin: org.geotools/gt-render

poly.geometryChanged();// djb -- jessie should do this during

代码示例来源:origin: org.geotools/gt-process-raster

tempCoordinates[2].x = nX; tempCoordinates[2].y = nY;
tempCoordinates[3].x = pX; tempCoordinates[3].y = nY;
polygon.geometryChanged();

相关文章