Skip to main content
Return the Convex Hull of polygon A ST_ConvexHull

Signatures

ST_ConvexHull (A: Geometry)

Parameters

A
Geometry
required
The input geometry.

Return type

The resulting geometry.

Example

SELECT ST_ConvexHull(ST_GeomFromText('POLYGON((175 150, 20 40, 50 60, 125 100, 175 150))'))
POLYGON ((20 40, 175 150, 125 100, 20 40))