Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
ジオメトリを複合曲線に変換します。
geometry-expression.ST_ToCompound()
ST_CompoundCurve geometry-expression が ST_CompoundCurve タイプの場合は、geometry-expression を返します。geometry-expression が ST_LineString または ST_CircularString タイプの場合は、1 つの要素 (geometry-expression) を含む複合曲線を返します。geometry-expression が、ST_Curve タイプの 1 つの要素を含むジオメトリコレクションの場合は、その要素キャストを ST_CompoundCurve として返します。geometry-expression が空のセットの場合は、ST_CompoundCurve タイプの空のセットを返します。それ以外の場合は、例外条件が発生します。
結果の空間参照系識別子は、geometry-expression の空間参照系と同じです。
ジオメトリを円ストリングに変換します。このロジックは、CAST( geometry-expression AS ST_CompoundCurve ) に使用されるロジックと同等です。
geometry-expression が ST_CompoundCurve 値であるとすでにわかっている場合は、ST_ToCompound メソッドよりも TREAT( geometry-expression AS ST_CompoundCurve ) を使用する方が効率的です。
ST_ToCompound では、デフォルトで、使用可能な場合はジオメトリの元のフォーマットが使用されます。それ以外の場合は、内部フォーマットが使用されます。内部フォーマットと元のフォーマットの詳細については、STORAGE FORMAT 句、CREATE SPATIAL REFERENCE SYSTEM 文を参照してください。
SQL/MM (ISO/IEC 13249-3: 2006) 5.1.33
次の例では、結果として CompoundCurve ((0 0, 2 1)) を返します。
CompoundCurve ((0 0, 2 1))
SELECT NEW ST_LineString( 'LineString( 0 0, 2 1 )' ).ST_ToCompound()