sql 计算空间列两地点之间距离

SELECT a.Remark,b.stationcode otherstationid,
CAST( a.GeoCol.STDistance(b.GeoCol) AS int) distance
FROM ALLbaseStation a JOIN allotherStation b ON 1=1
WHERE
CAST( a.GeoCol.STDistance(b.GeoCol) AS int)<5000

posted on 2017-08-23 16:40  范少敏  阅读(354)  评论(0编辑  收藏  举报

导航