com.vividsolutions.jts.operation.buffer
public class BufferBuilder extends java.lang.Object
When computing buffers in floating point double-precision it can happen that the process of iterated noding can fail to converge (terminate). In this case a TopologyException will be thrown. Retrying the computation in a fixed precision can produce more robust results.
Constructor and Description |
---|
BufferBuilder(BufferParameters bufParams)
Creates a new BufferBuilder
|
Modifier and Type | Method and Description |
---|---|
Geometry |
buffer(Geometry g,
double distance) |
protected void |
insertUniqueEdge(Edge e)
Inserted edges are checked to see if an identical edge already exists.
|
void |
setNoder(Noder noder)
Sets the
Noder to use during noding. |
void |
setWorkingPrecisionModel(PrecisionModel pm)
Sets the precision model to use during the curve computation and noding,
if it is different to the precision model of the Geometry.
|
public BufferBuilder(BufferParameters bufParams)
public void setWorkingPrecisionModel(PrecisionModel pm)
pm
- the precision model to usepublic void setNoder(Noder noder)
Noder
to use during noding.
This allows choosing fast but non-robust noding, or slower
but robust noding.noder
- the noder to useprotected void insertUniqueEdge(Edge e)