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


IGeometryServer2.Generalize Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryServer2 Interface > IGeometryServer2.Generalize Method
ArcGIS Developer Help

IGeometryServer2.Generalize Method

Returns generalized (Douglas-Peucker) versions of the input polylines and polygons (uses IPolycurve::Generalize).

[Visual Basic .NET]
Public Function Generalize ( _
    ByVal pSR As ISpatialReference, _
    ByVal pInGA As IGeometryArray, _
    ByVal maxDeviation As Double, _
    ByVal pDeviationUnit As ILinearUnit _
) As IGeometryArray
[C#]
public IGeometryArray Generalize (
    ISpatialReference pSR,
    IGeometryArray pInGA,
    double maxDeviation,
    ILinearUnit pDeviationUnit
);
[C++]
HRESULT Generalize(
  ISpatialReference* pSR,
  IGeometryArray* pInGA,
  double maxDeviation,
  ILinearUnit* pDeviationUnit
);
[C++]
Parameters
pSR 

pSR is a parameter of type ISpatialReference* pInGA
pInGA is a parameter of type IGeometryArray* maxDeviation
maxDeviation is a parameter of type double pDeviationUnit
pDeviationUnit is a parameter of type ILinearUnit*

Product Availability

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

Remarks

The Generalize operation applies Douglas-poiker line generalization to 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 it is expressed in the units of the spatial reference.

See Also

IGeometryServer2 Interface