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

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

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

Polygon.buffer介绍

暂无

代码示例

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

public Geometry buffer(double distance, int quadrantSegments, int endCapStyle) {
  return polygon.buffer(distance, quadrantSegments, endCapStyle);
}

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

public Geometry buffer(double distance, int quadrantSegments) {
  return polygon.buffer(distance, quadrantSegments);
}

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

public Geometry buffer(double distance) {
  return polygon.buffer(distance);
}

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

/**
 * Returns an expanded rendering envelope if the buffering size is not using feature attributes.
 * If the buffering size is feature dependent the user will have to expand
 * the rendering area via the renderer buffer parameter
 */
public ReferencedEnvelope invert(ReferencedEnvelope renderingEnvelope) {
  Double buffer = getExpression(1).evaluate(null, Double.class);
  if(buffer == null || buffer <= 0.0) {
    return null;
  }
  
  Envelope bufferedEnvelope = JTS.toGeometry((Envelope) renderingEnvelope).buffer(buffer).getEnvelopeInternal();
  return new ReferencedEnvelope(bufferedEnvelope, renderingEnvelope.getCoordinateReferenceSystem());
}

代码示例来源:origin: jzyong/game-server

Geometry bufferedGeometry = polygon.buffer(bufferAmount, numPointsInAQuadrant);
if (bufferedGeometry instanceof Polygon) {
  buffererPolygon = (Polygon) bufferedGeometry;

代码示例来源:origin: shizuchengxuyuan/net.sz.java

com.vividsolutions.jts.geom.Polygon bufferedJTSPolygon = null;
jtsPolygon.setSRID(numPointsInAQuadrant);
Geometry bufferedGeometry = jtsPolygon.buffer(bufferAmount, numPointsInAQuadrant);
if (bufferedGeometry instanceof com.vividsolutions.jts.geom.Polygon) {
  bufferedJTSPolygon = (com.vividsolutions.jts.geom.Polygon) bufferedGeometry;

代码示例来源:origin: opentraffic/traffic-engine

timeZoneData.bufferedPointLocator = new IndexedPointInAreaLocator(tzGeom.buffer(0.25));

代码示例来源:origin: kiselev-dv/gazetteer

p = (Polygon) p.buffer(0.0);

代码示例来源:origin: org.geowebcache/gwc-georss

coveredLevelEnvelope = JTS.transform(aggregatedGeomBounds, worldToGrid);
Geometry bufferedEnvelopeInGridCrs;
bufferedEnvelopeInGridCrs = JTS.toGeometry(coveredLevelEnvelope).buffer(
    ENVELOPE_BUFFER_RATIO);
coveredLevelEnvelope = bufferedEnvelopeInGridCrs.getEnvelopeInternal();

代码示例来源:origin: org.geoserver.extension/wps-core

Geometry expected = gf.createPolygon(shell, null).buffer(distance);

代码示例来源:origin: org.geoserver.extension/wps-core

Geometry expected = gf.createPolygon(shell, null).buffer(500);

相关文章