Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回 ST_Curve 值的 ST_LineString 内插值。
curve-expression.ST_CurveToLine()
ST_LineString 返回 curve-expression 的 ST_LineString 内插值。
结果的空间参照系标识符与 curve-expression 的空间参照系标识符相同。
如果 curve-expression 为空,则 ST_CurveToLine 方法返回类型 ST_LineString 的空集。否则,ST_CurveToLine 返回一个包含 curve-expression 中的所有线串(这些线串与 curve-expression 中的所有圆弧线串的内插值相结合)的线串。
缺省情况下,如果几何的原始格式可用,ST_CurveToLine 将使用该格式。否则使用内部格式。有关内部和原始格式的详细信息,请参见STORAGE FORMAT 子句,CREATE SPATIAL REFERENCE SYSTEM 语句。
SQL/MM (ISO/IEC 13249-3: 2006) 7.1.7
以下示例返回结果 [LineString (0 7, 0 4, 4 4)](原始线串的副本)。
LineString (0 7, 0 4, 4 4)
SELECT TREAT( Shape AS ST_Curve ).ST_CurveToLine() FROM SpatialShapes WHERE ShapeID = 5
以下示例返回结果 [LineString (0 0, 5 10)](复合曲线转换为等效线串)。
LineString (0 0, 5 10)
SELECT NEW ST_CompoundCurve( 'CompoundCurve((0 0, 5 10))' ).ST_CurveToLine()
以下示例返回近似原始圆弧线串的内插线串。
SELECT TREAT( Shape AS ST_Curve ).ST_CurveToLine() FROM SpatialShapes WHERE ShapeID = 19