Package org.locationtech.jts.simplify
Class TaggedLinesSimplifier
- java.lang.Object
-
- org.locationtech.jts.simplify.TaggedLinesSimplifier
-
class TaggedLinesSimplifier extends java.lang.ObjectSimplifies 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 byTaggedLineStringSimplifier.
-
-
Field Summary
Fields Modifier and Type Field Description private doubledistanceToleranceprivate LineSegmentIndexinputIndexprivate LineSegmentIndexoutputIndex
-
Constructor Summary
Constructors Constructor Description TaggedLinesSimplifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetDistanceTolerance(double distanceTolerance)Sets the distance tolerance for the simplification.voidsimplify(java.util.Collection taggedLines)Simplify a collection of TaggedLineStrings
-
-
-
Field Detail
-
inputIndex
private LineSegmentIndex inputIndex
-
outputIndex
private LineSegmentIndex outputIndex
-
distanceTolerance
private double distanceTolerance
-
-
Method Detail
-
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
public void simplify(java.util.Collection taggedLines)
Simplify a collection of TaggedLineStrings- Parameters:
taggedLines- the collection of lines to simplify
-
-