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


IGeometryServer2.ConvexHull Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

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,
  IGeometry** pHull
);
[C++]

Parameters pSR
pSR is a parameter of type ISpatialReference pInGeometryArray
pInGeometryArray is a parameter of type IGeometryArray pHull [out, retval]
pHull is a parameter of type IGeometry

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