本文整理了Java中org.locationtech.jts.geom.Polygon.buffer()
方法的一些代码示例,展示了Polygon.buffer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Polygon.buffer()
方法的具体详情如下:
包路径:org.locationtech.jts.geom.Polygon
类名称:Polygon
方法名:buffer
暂无
代码示例来源:origin: geotools/geotools
public Geometry buffer(double distance) {
return polygon.buffer(distance);
}
代码示例来源:origin: geotools/geotools
public Geometry buffer(double distance, int quadrantSegments) {
return polygon.buffer(distance, quadrantSegments);
}
代码示例来源:origin: geotools/geotools
public Geometry buffer(double distance, int quadrantSegments, int endCapStyle) {
return polygon.buffer(distance, quadrantSegments, endCapStyle);
}
代码示例来源:origin: geotools/geotools
/**
* 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: GeoWebCache/geowebcache
Geometry bufferedEnvelopeInGridCrs;
bufferedEnvelopeInGridCrs =
JTS.toGeometry(coveredLevelEnvelope).buffer(ENVELOPE_BUFFER_RATIO);
coveredLevelEnvelope = bufferedEnvelopeInGridCrs.getEnvelopeInternal();
MathTransform gridToWorld = worldToGrid.inverse();
内容来源于网络,如有侵权,请联系作者删除!