This topic describes the ST_MinimumBoundingRadius function. This function returns the center point and radius of the smallest circle that can fully cover the input geometry object.

Syntax

(geometry , double precision)  ST_MinimumBoundingRadius(geometry  geom);

Parameters

Parameter Description
geom The geometry object that you want to specify.

Description

You can use this function with the ST_Collect function to obtain the smallest bounding circle of a set of geometry objects.

Examples

Results returned by using the default parameter settings:
select ST_AsText(center), radius from ST_MinimumBoundingRadius('POLYGON((0 1,-1 0,0 -1,1 0,0 1))'::geometry);
 st_astext  | radius
------------+--------
 POINT(0 0) |      1
(1 row)