Table of Contents

Class TaggedLineStringSimplifier

Namespace
NetTopologySuite.Simplify
Assembly
NetTopologySuite.dll

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

public class TaggedLineStringSimplifier
Inheritance
TaggedLineStringSimplifier
Inherited Members

Constructors

TaggedLineStringSimplifier(LineSegmentIndex, LineSegmentIndex)

public TaggedLineStringSimplifier(LineSegmentIndex inputIndex, LineSegmentIndex outputIndex)

Parameters

inputIndex LineSegmentIndex
outputIndex LineSegmentIndex

Properties

DistanceTolerance

Sets the distance tolerance for the simplification. All vertices in the simplified geometry will be within this distance of the original geometry.

public double DistanceTolerance { get; set; }

Property Value

double

Methods

Simplify(TaggedLineString)

Simplifies the given TaggedLineString using the distance tolerance specified.

public void Simplify(TaggedLineString line)

Parameters

line TaggedLineString

The linestring to simplify.