|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.operation.buffer.BufferBuilder
public class BufferBuilder
Builds the buffer geometry for a given input geometry and precision model. Allows setting the level of approximation for circular arcs, and the precision model in which to carry out the computation.
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 Summary | |
---|---|
BufferBuilder(BufferParameters bufParams)
Creates a new BufferBuilder |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferBuilder(BufferParameters bufParams)
Method Detail |
---|
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 usepublic Geometry buffer(Geometry g, double distance)
protected void insertUniqueEdge(Edge e)
|
JTS Topology Suite version 1.12 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |