This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryServer2 Interface > IGeometryServer2.Generalize Method (ArcObjects .NET 10.5 SDK) |
Returns generalized (Douglas-Poiker) 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,
IGeometryArray** ppGeneralizedGA
);
[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 ppGeneralizedGA [out, retval]
ppGeneralizedGA is a parameter of type IGeometryArray
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.