ArcGIS Pro 2.6 API Reference Guide
Generalize Method (GeometryEngine)

ArcGIS.Core.Geometry Namespace > GeometryEngine Class : Generalize Method
The geometry to be generalized.
The maximum distance in meters that the output geometry can deviate from the input geometry.
When true, the degenerate parts of the geometry will be removed from the output.
(Optional) The default value is false.
Performs the generalize operation on the geometry.
Syntax

Parameters

geometry
The geometry to be generalized.
maxDeviation
The maximum distance in meters that the output geometry can deviate from the input geometry.
removeDegenerateParts
When true, the degenerate parts of the geometry will be removed from the output.
preserveCurves
(Optional) The default value is false.

Return Value

The generalized geometry.
Exceptions
ExceptionDescription
Geometry is null or empty.
The method is not implemented for GeometryBag or Multipatch.
The geomtry is of an incorrect type. (i.e. a point or multipoint).
Remarks
Generalize performs a Douglas-Peucker 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, if preserveCurves is false, then the generalized output contains points along all parts of the curve, not necessarily only the vertices. If preserveCurves is true, then the non-linear segments are left as is.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

GeometryEngine Class
GeometryEngine Members