GEOS 3.11.1
|
Simplifies a TaggedLineString, preserving topology (in the sense that no new intersections are introduced). Uses the recursive Douglas-Peucker algorithm. More...
#include <TaggedLineStringSimplifier.h>
Public Member Functions | |
TaggedLineStringSimplifier (LineSegmentIndex *inputIndex, LineSegmentIndex *outputIndex) | |
void | setDistanceTolerance (double d) |
Sets the distance tolerance for the simplification. More... | |
void | simplify (TaggedLineString *line) |
Simplifies a TaggedLineString, preserving topology (in the sense that no new intersections are introduced). Uses the recursive Douglas-Peucker algorithm.
|
inline |
Sets the distance tolerance for the simplification.
All vertices in the simplified geometry will be within this distance of the original geometry.
d | the approximation tolerance to use |
void geos::simplify::TaggedLineStringSimplifier::simplify | ( | TaggedLineString * | line | ) |
Simplifies the given TaggedLineString
using the distance tolerance specified.
line | the linestring to simplify |