ST_CurveN — Returns the Nth component curve geometry of a CompoundCurve.
geometry ST_CurveN(
geometry a_compoundcurve, integer index)
;
Returns the Nth component curve geometry of a CompoundCurve. The index starts at 1. Returns NULL if the geometry is not a CompoundCurve or the index is out of range.
Diese Methode setzt die SQL/MM-Spezifikation um. SQL-MM 3: 8.2.6, 8.3.5
Diese Funktion unterstützt 3d und lässt den Z-Index nicht fallen.
SELECT ST_AsText(ST_CurveN('COMPOUNDCURVE( (2 2, 2.5 2.5), CIRCULARSTRING(2.5 2.5, 4.5 2.5, 3.5 3.5), (3.5 3.5, 2.5 4.5, 3 5, 2 2) )', 1));
ST_NumCurves, ST_Dump, ST_ExteriorRing, ST_NumInteriorRings, ST_NumGeometries