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

时间:2024-01-26 16:15:20

polygon(npts, circle)

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

返回类型:polygon

示例:

1
2
3
4
5
6
SELECT polygon(12, 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-820-dws/dws_06_0316.html