查找 PostGIS 中每个位置点之间的距离
在PostGres数据库中,有一列“位置”,具有地理数据类型,另一列“时间”。时间和位置点存储在很多行中。我想找到每个位置之间的距离。为此,如何在PostGIS中查询。
In PostGres Database having a Column "location" with geography datatype and another column "time".The time and location points are stored in lot of rows.I want to find the distance between the each locations.For that how to query in PostGIS.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我看不出时间列有什么相关性(哦 - 你最好不要使用它作为列名,因为它已经是一个类型名称)。计算距离的方法有多种,如果您还没有找到,我强烈推荐 PostGIS 文档:
http: //postgis.refractions.net/documentation/
I can't see what relevance the time column has (oh - you're probably better off not using that as a column-name since it's already a type name). There are different ways to calculate distance and if you've not found it yet, I highly recommend the PostGIS documentation:
http://postgis.refractions.net/documentation/