DouglasPeuckerShapeSimplifier Class

Determines the Douglas-Peucker shape simplification algorithm.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v20.1.dll

Declaration

public class DouglasPeuckerShapeSimplifier :
    ShapeSimplifierBase
Public Class DouglasPeuckerShapeSimplifier
    Inherits ShapeSimplifierBase

Remarks

The following example shows how to use DouglasPeuckerShapeSimplifier to simplify vector layer items.

private void SimpleButton_Click(object sender, RoutedEventArgs e) {
    DouglasPeuckerShapeSimplifier simplifier = new DouglasPeuckerShapeSimplifier();
    simplifier.Simplify(adapter.DisplayItems, 50);
}

The Map control also provides the built-in VisvalingamShapeSimplifier you can use instead of the DouglasPeuckerShapeSimplifier. The Douglas-Peucker algorithm provides greater smoothness of the resulting polyline while the Visvalingam algorithm demonstrates better performance when you process a polyline with a large number of vertices.

See Also