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 scale.| Constructor and Description |
|---|
OffsetCurveBuilder(GeometryFactory precisionModel,
BufferParameters bufParams) |
| Modifier and Type | Method and Description |
|---|---|
BufferParameters |
getBufferParameters()
Gets the buffer parameters being used to generate the curve.
|
LineString |
getLineCurve(LineString inputPts,
double distance)
This method handles single points as well as LineStrings.
|
LineString |
getOffsetCurve(LineString inputPts,
double distance) |
LineString |
getPointCurve(Point point,
double distance) |
LineString |
getRingCurve(LineString points,
int side,
double distance)
This method handles the degenerate cases of single points and lines,
as well as rings.
|
public OffsetCurveBuilder(GeometryFactory precisionModel, BufferParameters bufParams)
public BufferParameters getBufferParameters()
public LineString getLineCurve(LineString inputPts, double distance)
inputPts - the vertices of the line to offsetdistance - the offset distancepublic LineString getOffsetCurve(LineString inputPts, double distance)
public LineString getPointCurve(Point point, double distance)
public LineString getRingCurve(LineString points, int side, double distance)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.