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


IGeometryServer2.ConvexHull 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.ConvexHull Method
ArcGIS Developer Help

IGeometryServer2.ConvexHull Method

Computes the convex hull of the input geometries

[Visual Basic .NET]
Public Function ConvexHull ( _
    ByVal pSR As ISpatialReference, _
    ByVal pInGeometryArray As IGeometryArray _
) As IGeometry
[C#]
public IGeometry ConvexHull (
    ISpatialReference pSR,
    IGeometryArray pInGeometryArray
);
[C++]
HRESULT ConvexHull(
  ISpatialReference* pSR,
  IGeometryArray* pInGeometryArray
);
[C++]
Parameters
pSR 

pSR is a parameter of type ISpatialReference* pInGeometryArray
pInGeometryArray is a parameter of type IGeometryArray*

Product Availability

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

Remarks

The convex hull of a set of points, polylines and polygons is shown below. If all the inputs are collinear, than a polyline will be returned instead of a polygon. If all inputs are located at a single point, then that point will be returned.

 

ConvexHull.jpg

See Also

IGeometryServer2 Interface