Skip to content
πŸŽ‰ SedonaDB 0.4.0 is out now! πŸ—ΊοΈ Python DataFrame API, R dplyr, Geography support & GPU-accelerated spatial joins. Read the release blog β†’

ST_ConvexHull

Introduction: Return the Convex Hull of polygon A

ST_ConvexHull

Format: ST_ConvexHull (A: Geometry)

Return type: Geometry

Since: v1.5.0

Example:

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

Output:

POLYGON ((20 40, 175 150, 125 100, 20 40))