ST_NumCurves — 返回 CompoundCurve 中组成曲线的数量。
integer ST_NumCurves(geometry a_compoundcurve);
返回 CompoundCurve 中组成曲线的数量,对于空的 CompoundCurve 返回零,对于非 CompoundCurve 输入返回 NULL。
             此方法实现了 SQL/MM 规范。SQL-MM 3: 8.2.6, 8.3.5
 此方法实现了 SQL/MM 规范。SQL-MM 3: 8.2.6, 8.3.5
             此函数支持 3D,并且不会丢弃 z 索引。
 此函数支持 3D,并且不会丢弃 z 索引。
-- Returns 3
SELECT ST_NumCurves('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)
  )');
-- Returns 0
SELECT ST_NumCurves('COMPOUNDCURVE EMPTY');