Geometry service Generalize method

The Generalize method constructs generalized (Douglas-Peucker) versions of the input polylines and polygons.

Generalize(SpatialReference SpatialReference, Geometry[] InGeometryArray, double MaxDeviation, LinearUnit DeviationUnit)

Parameter

Description

SpatialReference

The spatial reference of the input geometries. Must not be null.

InGeometryArray

The array of polylines and polygons to be generalized.

MaxDeviation

The tolerance used to determine if vertices should be preserved in the output.

DeviationUnit

The unit of distance used for MaxDeviation (optional).

Return Value

An array of geometries of type polyline or polygon (Geometry[]).

Remarks

The Generalize operation reduces the number of vertices in each element of the input array. The results are placed in corresponding indexes of the output array. If DeviationUnit is specified, then MaxDeviation is expressed in those units. Otherwise, MaxDeviation is expressed in the units of the spatial reference.

2/28/2020