ST_MinimumBoundingRadius
Prev | 8.14. Geometry Processing | Next

## Name

ST_MinimumBoundingRadius — Returns the center point and radius of the smallest circle that contains a geometry.

## Synopsis

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

## Description

Computes the center point and radius of the smallest circle that contains a geometry. Returns a record with fields:

- `center` - center point of the circle

- `radius` - radius of the circle

Use in conjunction with ST_Collect to get the minimum bounding circle of a set of geometries.

Availability - 2.3.0

## See Also

ST_Collect, ST_MinimumBoundingCircle

## Examples

    SELECT ST_AsText(center), radius FROM ST_MinimumBoundingRadius('POLYGON((26426 65078,26531 65242,26075 65136,26096 65427,26426 65078))');

                    st_astext                 |      radius
    ------------------------------------------+------------------
     POINT(26284.8418027133 65267.1145090825) | 247.436045591407

Prev | Up | Next
ST_MinimumBoundingCircle | Home | ST_OrientedEnvelope