Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
计算表示多表面的数学质心的 ST_Point。
multisurface-expression.ST_Centroid()
ST_Point 如果多表面是空集,则返回 NULL。否则返回表面的数学质心。
结果的空间参照系标识符与 multisurface-expression 的空间参照系标识符相同。
计算表示多表面的数学质心的 ST_Point。该点并不一定是表面上的点。
此方法无法用于球形地球空间参照系中的几何。
SQL/MM (ISO/IEC 13249-3: 2006) 9.5.5
以下示例返回结果 [Point (1.865682 .664892)]。
Point (1.865682 .664892)
SELECT TREAT( Shape AS ST_MultiSurface ).ST_Centroid() FROM SpatialShapes WHERE ShapeID = 28