This document is archived and information here might be outdated.  Recommended version.


IPath.Generalize Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Geometry)  

IPath.Generalize Method

Generalizes this path using the Douglas-Peucker algorithm.

[Visual Basic .NET]
Public Sub Generalize ( _
    ByVal maxAllowableOffset As Double _
)
[C#]
public void Generalize (
    double maxAllowableOffset
);
[C++]
HRESULT Generalize(
  double maxAllowableOffset
);
[C++]

Parameters maxAllowableOffset
maxAllowableOffset is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Generalizes the Path into a generalized collection of Line segments.  Generalize performs a Douglas-Poiker Generalization algorithm with a specified maximum offset tolerance given as input.  For Line segments, the Generalized output is a subset of the original input vertices.  For non-Linear segments, the Generalized output contains points along all parts of the curve, not necessarily only the vertices.

Remarks

For a path with non-linear segments, the output curve may contain more vertices than the input curve, but all output segments will be linear.

IPath Generalize Example

See Also

IPath Interface