Geotools.Net

IGeometry.ConvexHull Method 

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

[Visual Basic]
Function ConvexHull() As Geometry
[C#]
Geometry ConvexHull();

Return Value

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

Remarks

This obviously applies only to Geometrys 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

IGeometry Interface | IGeometry Members | Geotools.Geometries Namespace