Skip to content
Apache Sedona 1.9.0 is out now, featuring Spark 4.1 support, proj4sedona CRS transformation, Bing Tile functions, and more!

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))