ST_MinimumBoundingRadius¶
Introduction: Returns a struct containing the center point and radius of the smallest circle that contains a geometry.
Format: ST_MinimumBoundingRadius(geom: Geometry)
Since: v1.5.0
Example:
SELECT ST_MinimumBoundingRadius(ST_GeomFromText('POLYGON((1 1,0 0, -1 1, 1 1))'))
Output:
{POINT (0 1), 1.0}