标签: sql sql-server spatial
SQL Server中是否有办法解决
或
非常感谢任何帮助
答案 0 :(得分:2)
https://en.wikipedia.org/wiki/Centroid#Of_a_finite_set_of_points说你只是平均X坐标和Y坐标。所以(假设你有x和y列)你的查询就像:
SELECT SUM(x)/COUNT(*) as CentreX, SUM(y)/COUNT(Y) as CentreY FROM ...