Distance between 2 POINTs in Postgis in srid 4326 in metres

前端 未结 3 1545
我寻月下人不归
我寻月下人不归 2021-01-31 09:58

This is probably a simple question, but I\'m not very good at PostGIS and don\'t fully grok all of this.

Basically I have a table (nodes) with a POINT colum

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-31 10:46

    Old question but you just have to cast like this: ST_Distance(p.geom::geography, u.geom::geography) where p and u are alias for two tables

提交回复
热议问题