数据仓库服务 GAUSSDB(DWS)-几何类型转换函数:polygon(circle)

时间:2024-10-21 16:50:41

polygon(circle)

描述:圆转换成12点多边形。

返回类型:polygon

示例:

1
2
3
4
5
6
SELECT polygon(circle '((0,0),2.0)') AS RESULT;
                                                                                                                                                result                                                                                      

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 ((-2,0),(-1.73205080756888,1),(-1,1.73205080756888),(-1.22464679914735e-16,2),(1,1.73205080756888),(1.73205080756888,1),(2,2.44929359829471e-16),(1.73205080756888,-0.999999999999999),(1,-1.73205080756888),(3.67394039744206e-16,-2),(-0.999999999999999,-1.73205080756888),(-1.73205080756888,-1))
(1 row)
support.huaweicloud.com/sqlreference-830-dws/dws_06_0316.html