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
| Edit this page View SourceTaggedLineStringSimplifier(LineSegmentIndex, LineSegmentIndex)
Declaration
[Obsolete("Using this constructor will not work and it will be removed in a future version.", true)]
public TaggedLineStringSimplifier(LineSegmentIndex inputIndex, LineSegmentIndex outputIndex)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentIndex | inputIndex | |
LineSegmentIndex | outputIndex |
TaggedLineStringSimplifier(LineSegmentIndex, LineSegmentIndex, ComponentJumpChecker)
Declaration
public TaggedLineStringSimplifier(LineSegmentIndex inputIndex, LineSegmentIndex outputIndex, ComponentJumpChecker crossChecker)
Parameters
Type | Name | Description |
---|---|---|
LineSegmentIndex | inputIndex | |
LineSegmentIndex | outputIndex | |
ComponentJumpChecker | crossChecker |
Properties
| Edit this page 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
[Obsolete]
public double DistanceTolerance { get; set; }
Property Value
Type | Description |
---|---|
double |
Methods
| Edit this page View SourceSimplify(TaggedLineString)
Simplifies the given TaggedLineString using the distance tolerance specified.
Declaration
[Obsolete("Will be removed in a future version. Use overload with distanceTolerance parameter.")]
public void Simplify(TaggedLineString line)
Parameters
Type | Name | Description |
---|---|---|
TaggedLineString | line | The linestring to simplify. |
Simplify(TaggedLineString, double)
Simplifies the given TaggedLineString using the distance tolerance specified.
Declaration
public void Simplify(TaggedLineString line, double distanceTolerance)
Parameters
Type | Name | Description |
---|---|---|
TaggedLineString | line | The linestring to simplify. |
double | distanceTolerance | The simplification distance tolerance |