Skip to main content
A newer version of this page is available. .

VisvalingamShapeSimplifier Class

Specifies the Visvalingam shape simplification algorithm.

Namespace: DevExpress.Xpf.Map

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Map, DevExpress.Wpf.Map

Declaration

public class VisvalingamShapeSimplifier :
    ShapeSimplifierBase

Remarks

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

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

The Map control also provides the built-in DouglasPeuckerShapeSimplifier you can use instead of VisvalingamShapeSimplifier. 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