Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

VisvalingamShapeSimplifier Class

Specifies the Visvalingam shape simplification algorithm.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

public class VisvalingamShapeSimplifier :
    ShapeSimplifierBase

#Remarks

You can use the VisvalingamShapeSimplifier instance to pass as the first parameter into the MapEditor.SimplifyItems(ShapeSimplifierBase, IEnumerable<MapItem>, Double) method.

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.

#Inheritance

Object
ShapeSimplifierBase
VisvalingamShapeSimplifier
See Also