查找 PostGIS 中每个位置点之间的距离

发布于 2024-12-19 11:03:14 字数 91 浏览 1 评论 0原文

在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回眸一遍 2024-12-26 11:03:14

我看不出时间列有什么相关性(哦 - 你最好不要使用它作为列名,因为它已经是一个类型名称)。计算距离的方法有多种,如果您还没有找到,我强烈推荐 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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文