GEOS  3.8.0dev
Public Member Functions | List of all members
geos::simplify::TaggedLineStringSimplifier Class Reference

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)
 

Detailed Description

Simplifies a TaggedLineString, preserving topology (in the sense that no new intersections are introduced). Uses the recursive Douglas-Peucker algorithm.

Member Function Documentation

void geos::simplify::TaggedLineStringSimplifier::setDistanceTolerance ( double  d)
inline

Sets the distance tolerance for the simplification.

All vertices in the simplified geometry will be within this distance of the original geometry.

Parameters
dthe approximation tolerance to use
void geos::simplify::TaggedLineStringSimplifier::simplify ( TaggedLineString line)

Simplifies the given TaggedLineString using the distance tolerance specified.

Parameters
linethe linestring to simplify

The documentation for this class was generated from the following file: