Class TaggedLineStringSimplifier
Simplifies a TaggedLineString, preserving topology (in the sense that no new intersections are introduced). Uses the recursive Douglas-Peucker algorithm.
Inherited Members
Namespace: NetTopologySuite.Simplify
Assembly: NetTopologySuite.dll
Syntax
public class TaggedLineStringSimplifier
Constructors
| Improve this Doc View SourceTaggedLineStringSimplifier(LineSegmentIndex, LineSegmentIndex)
Declaration
public TaggedLineStringSimplifier(LineSegmentIndex inputIndex, LineSegmentIndex outputIndex)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentIndex | inputIndex | |
LineSegmentIndex | outputIndex |
Properties
| Improve this Doc View SourceDistanceTolerance
Sets the distance tolerance for the simplification. All vertices in the simplified geometry will be within this distance of the original geometry.
Declaration
public double DistanceTolerance { get; set; }
Property Value
Type | Description |
---|---|
Double |
Methods
| Improve this Doc View SourceSimplify(TaggedLineString)
Simplifies the given TaggedLineString using the distance tolerance specified.
Declaration
public void Simplify(TaggedLineString line)
Parameters
Type | Name | Description |
---|---|---|
TaggedLineString | line | The linestring to simplify. |