Class: OffsetCurveBuilder

jsts.operation.buffer.OffsetCurveBuilder

new OffsetCurveBuilder()

Computes the raw offset curve for a single 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.
Source:

Methods

getBufferParameters()

Gets the buffer parameters being used to generate the curve.
Source:
Returns:
the buffer parameters being used.

getLineCurve(inputPts, distance)

This method handles single points as well as LineStrings. LineStrings are assumed not to be closed (the function will not fail for closed lines, but will generate superfluous line caps).
Parameters:
Name Type Description
inputPts the vertices of the line to offset.
distance the offset distance.
Source:
Returns:
  • a Coordinate array representing the curve.
  • null if the curve is empty.

getRingCurve()

This method handles the degenerate cases of single points and lines, as well as rings.
Source:
Returns:
  • a Coordinate array representing the curve.
  • null if the curve is empty.