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 doubleThe distance below which two adjacent points on the curve are considered to be coincident.private PrecisionModelprivate ArrayList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPt(Coordinate pt) voidaddPts(Coordinate[] pt, boolean isForward) voidprivate booleanTests whether the given point is redundant relative to the previous point in the list (up to tolerance).voidreverse()voidsetMinimumVertexDistance(double minimimVertexDistance) voidsetPrecisionModel(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
-