跳转至
🎉 SedonaDB 0.4.0 已正式发布!🗺️ 新增 Python DataFrame API、R dplyr 接口、Geography 支持及 GPU 加速空间连接。阅读发布博客 →

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.5.0

Example:

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

Output:

{POINT (0 1), 1.0}