Java Code Examples for com.vividsolutions.jts.operation.buffer.BufferParameters#setMitreLimit()
The following examples show how to use
com.vividsolutions.jts.operation.buffer.BufferParameters#setMitreLimit() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BufferFunctions.java From jts with GNU Lesser General Public License v2.1 | 5 votes |
public static Geometry bufferWithParams(Geometry g, Double distance, Integer quadrantSegments, Integer capStyle, Integer joinStyle, Double mitreLimit) { double dist = 0; if (distance != null) dist = distance.doubleValue(); BufferParameters bufParams = new BufferParameters(); if (quadrantSegments != null) bufParams.setQuadrantSegments(quadrantSegments.intValue()); if (capStyle != null) bufParams.setEndCapStyle(capStyle.intValue()); if (joinStyle != null) bufParams.setJoinStyle(joinStyle.intValue()); if (mitreLimit != null) bufParams.setMitreLimit(mitreLimit.doubleValue()); return BufferOp.bufferOp(g, dist, bufParams); }
Example 2
Source File: BufferFunctions.java From jts with GNU Lesser General Public License v2.1 | 5 votes |
public static Geometry bufferCurveWithParams(Geometry g, Double distance, Integer quadrantSegments, Integer capStyle, Integer joinStyle, Double mitreLimit) { double dist = 0; if (distance != null) dist = distance.doubleValue(); BufferParameters bufParams = new BufferParameters(); if (quadrantSegments != null) bufParams.setQuadrantSegments(quadrantSegments.intValue()); if (capStyle != null) bufParams.setEndCapStyle(capStyle.intValue()); if (joinStyle != null) bufParams.setJoinStyle(joinStyle.intValue()); if (mitreLimit != null) bufParams.setMitreLimit(mitreLimit.doubleValue()); return buildCurveSet(g, dist, bufParams); }