com.vividsolutions.jts.operation.buffer
public class OffsetCurveBuilder extends java.lang.Object
Geometry
component (ring, line or point).
A raw offset curve line is not noded -
it may contain self-intersections (and usually will).
The final buffer polygon is computed by forming a topological graph
of all the noded raw curves and tracing outside contours.
The points in the raw curve are rounded to the required precision model.Constructor and Description |
---|
OffsetCurveBuilder(PrecisionModel precisionModel,
BufferParameters bufParams) |
Modifier and Type | Method and Description |
---|---|
java.util.List |
getLineCurve(Coordinate[] inputPts,
double distance)
This method handles single points as well as lines.
|
java.util.List |
getRingCurve(Coordinate[] inputPts,
int side,
double distance)
This method handles the degenerate cases of single points and lines,
as well as rings.
|
public OffsetCurveBuilder(PrecisionModel precisionModel, BufferParameters bufParams)
public java.util.List getLineCurve(Coordinate[] inputPts, double distance)
public java.util.List getRingCurve(Coordinate[] inputPts, int side, double distance)