Skip to content
πŸŽ‰ Apache Sedona 1.9.1 is out now! πŸ—ΊοΈ Geography SQL functions, Box2D & Box3D types, raster Python UDFs & more. Read the release notes β†’

ST_MinimumBoundingRadius

Introduction: Returns a struct containing the center point and radius of the smallest circle that contains a geometry.

ST_MinimumBoundingRadius

Format: ST_MinimumBoundingRadius(geom: Geometry)

Return type: Struct<center: Geometry, radius: Double>

Since: v1.0.1

SQL Example

SELECT ST_MinimumBoundingRadius(ST_GeomFromText('POLYGON((1 1,0 0, -1 1, 1 1))'))

Output:

{POINT (0 1), 1.0}