public class OffsetCurveBuilder extends 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 a given
PrecisionModel.
| Constructor and Description |
|---|
OffsetCurveBuilder(PrecisionModel
|
| Modifier and Type | Method and Description |
|---|---|
BufferParameters |
getBufferParameters()
Gets the buffer parameters being used to generate the curve.
|
Coordinate |
getLineCurve(Coordinate
This method handles single points as well as LineStrings.
|
Coordinate |
getOffsetCurve(Coordinate
|
Coordinate |
getRingCurve(Coordinate
This method handles the degenerate cases of single points and lines, as well as rings.
|
public OffsetCurveBuilder(PrecisionModelprecisionModel, BufferParameters bufParams)
public BufferParametersgetBufferParameters()
public Coordinate[] getLineCurve(Coordinate [] inputPts, double distance)
inputPts - the vertices of the line to offset
distance - the offset distance
public Coordinate[] getRingCurve(Coordinate [] inputPts, int side, double distance)
public Coordinate[] getOffsetCurve(Coordinate [] inputPts, double distance)