Geotools.Net

Geometry.ConvexHull Method 

Returns the smallest convex Polygon that contains all the points in the Geometry.

[Visual Basic]
Overridable Public Function ConvexHull() As Geometry Implements _
   IGeometry.ConvexHull
[C#]
public virtual Geometry ConvexHull();

Return Value

Returns the minimum-area convex polygon containing this Geometry's points.

Implements

IGeometry.ConvexHull

Remarks

This obviously applies only to Geometry's which contain 3 or more points; the results for degenerate cases are specified as follows:

Number of Points in argument GeometryGeometry class of result
0Empty GeometryCollection
1Point
2LineString
3 or morePolygon

See Also

Geometry Class | Geometry Members | Geotools.Geometries Namespace