简体   繁体   English

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

[英]Find distance between each Location points in PostGIS

在PostGres数据库中,该列具有带有地理数据类型的“位置”列和另一个“时间”列。时间和位置点存储在很多行中。我想查找每个位置之间的距离。为此,如何在PostGIS中进行查询。

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: 有多种计算距离的方法,如果尚未找到距离,我强烈建议您使用PostGIS文档:

http://postgis.refractions.net/documentation/ http://postgis.refractions.net/documentation/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM