Package org.locationtech.jts.simplify
Class TaggedLineStringSimplifier
java.lang.Object
org.locationtech.jts.simplify.TaggedLineStringSimplifier
Simplifies a TaggedLineString, preserving topology
(in the sense that no new intersections are introduced).
Uses the recursive Douglas-Peucker algorithm.
- Version:
- 1.7
- Author:
- Martin Davis
-
Constructor Summary
ConstructorsConstructorDescriptionTaggedLineStringSimplifier
(org.locationtech.jts.simplify.LineSegmentIndex inputIndex, org.locationtech.jts.simplify.LineSegmentIndex outputIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setDistanceTolerance
(double distanceTolerance) Sets the distance tolerance for the simplification.
-
Constructor Details
-
TaggedLineStringSimplifier
public TaggedLineStringSimplifier(org.locationtech.jts.simplify.LineSegmentIndex inputIndex, org.locationtech.jts.simplify.LineSegmentIndex outputIndex)
-
-
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
-