把一個CircularString對象轉換成一個規則的LineString對象,或者把一個CurvedPolygon對象轉換成一個規則的Polygon對象。
文法
geometry ST_CurveToLine(geometry curveGeom , float tolerance , integer toleranceType , integer flags);參數
| 參數名稱 | 描述 |
| curveGeom | 目標Geometry對象。 |
| tolerance | 容差,預設值為0。 |
| toleranceType | 確定對tolerance參數的解釋:
|
| flags | 標誌位:
|
描述
- 每一個Curve對象或者片段會被分隔轉換成近似線段的處理, 預設分隔處理方法是每四分之一圓分成32弧段。
- 該函數常用於那些不支援CircularString幾何類型的平台上。
樣本
預設轉換參數與指定參數效果對比:

select ST_CurveToLine(g),ST_CurveToLine(g,pi()/4,2) from (select 'CIRCULARSTRING(0 0,0.5 0.5,1 0)'::geometry as g) as test;
