0

我是 Postgres 地理查询的新手,我想找到一个特定点半径 10 公里内的位置,所以我遇到了 earthdistance。我使用安装了扩展CREATE EXTENSION earthdistance;

之后,我运行了我的查询

SELECT *, (point(lng, lat) <@> point(-0.1281552,51.5107975)) AS distance FROM location WHERE (point(lng, lat) <@> point(-0.1281552,51.5107975)) < 10000 ORDER BY distance;

但我收到此错误:

ERROR:  function point(text, text) does not exist
LINE 1: select *, point(lng, lat) <@> point(-0.1281552,51.5107975) a...
                  ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

我做了一些搜索,但找不到任何解决方案。

4

0 回答 0