Skip to content
🌵SedonaDB (Rust) 0.3.0 is out now, featuring larger-than-memory spatial joins, and row-level CRS!

ST_ConvexHull

Introduction: Return the Convex Hull of polygon A

ST_ConvexHull

Format: ST_ConvexHull (A: Geometry)

Return type: Geometry

Since: v1.0.0

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