Skip to content

POLYGON(CIRCLE)

功能描述

将CIRCLE转换为12点多边形。

语法格式

sql
POLYGON(expr)

参数说明

expr:目标CIRCLE对象,为CIRCLE类型。

函数返回类型

POLYGON类型

示例

sql
SELECT POLYGON(CIRCLE('<(0,0),2>'));
EXPR1                                    |
-----------------------------------------+
((-2.0,0.0),(-1.7320508075688774,0.9999999999999999),(-1.0000000000000002,1.7320508075688772),(-1.2246467991473532E-16,2.0),(0.9999999999999996,1.7320508075688774),(1.732050807568877,1.0000000000000007),(2.0,2.4492935982947064E-16),(1.7320508075688776,-0.9999999999999994),(1.0000000000000009,-1.7320508075688767),(3.6739403974420594E-16,-2.0),(-0.9999999999999987,-1.732050807568878),(-1.7320508075688767,-1.0000000000000009))|