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