Package org.locationtech.jts.simplify
Class TaggedLinesSimplifier
java.lang.Object
org.locationtech.jts.simplify.TaggedLinesSimplifier
Simplifies a collection of TaggedLineStrings, preserving topology
(in the sense that no new intersections are introduced).
This class is essentially just a container for the common
indexes used by
TaggedLineStringSimplifier
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double
private LineSegmentIndex
private LineSegmentIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setDistanceTolerance
(double distanceTolerance) Sets the distance tolerance for the simplification.void
simplify
(Collection taggedLines) Simplify a collection of TaggedLineStrings
-
Field Details
-
inputIndex
-
outputIndex
-
distanceTolerance
private double distanceTolerance
-
-
Constructor Details
-
TaggedLinesSimplifier
public TaggedLinesSimplifier()
-
-
Method Details
-
setDistanceTolerance
public void setDistanceTolerance(double distanceTolerance) Sets the distance tolerance for the simplification. All vertices in the simplified geometry will be within this distance of the original geometry.- Parameters:
distanceTolerance
- the approximation tolerance to use
-
simplify
Simplify a collection of TaggedLineStrings- Parameters:
taggedLines
- the collection of lines to simplify
-