Class OffsetSegmentString
java.lang.Object
org.locationtech.jts.operation.buffer.OffsetSegmentString
A dynamic list of the vertices in a constructed offset curve.
Automatically removes adjacent vertices
which are closer than a given tolerance.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Coordinate[]
private double
The distance below which two adjacent points on the curve are considered to be coincident.private PrecisionModel
private ArrayList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPt
(Coordinate pt) void
addPts
(Coordinate[] pt, boolean isForward) void
private boolean
Tests whether the given point is redundant relative to the previous point in the list (up to tolerance).void
reverse()
void
setMinimumVertexDistance
(double minimimVertexDistance) void
setPrecisionModel
(PrecisionModel precisionModel) toString()
-
Field Details
-
COORDINATE_ARRAY_TYPE
-
ptList
-
precisionModel
-
minimimVertexDistance
private double minimimVertexDistanceThe distance below which two adjacent points on the curve are considered to be coincident. This is chosen to be a small fraction of the offset distance.
-
-
Constructor Details
-
OffsetSegmentString
public OffsetSegmentString()
-
-
Method Details
-
setPrecisionModel
-
setMinimumVertexDistance
public void setMinimumVertexDistance(double minimimVertexDistance) -
addPt
-
addPts
-
isRedundant
Tests whether the given point is redundant relative to the previous point in the list (up to tolerance).- Parameters:
pt
-- Returns:
- true if the point is redundant
-
closeRing
public void closeRing() -
reverse
public void reverse() -
getCoordinates
-
toString
-