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


IPolycurve.Weed Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IPolycurve.Weed Method

Generalizes using a small tolerance based upon either the system units of the geometry's spatial reference, or the geometry's bounding box.

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

Parameters maxAllowableOffsetFactor maxAllowableOffsetFactor is a parameter of type double

Product Availability

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

Description

Weed Generalizes each part of a Polycurve into a generalized collection of Line segments.  Weed performs a Douglas-Poiker Generalization algorithm with a specified multiple of the internal 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 polycurve with non-linear segments, the output curve may contain more vertices than the input curve, but all output segments will be linear.

Weed(X)=Generalize(X * InternalTolerance)

IPolycurve Weed Example

See Also

IPolycurve Interface