我已经安装了 PostGis 的 PostgreSQL,我尝试运行以下命令:
SELECT N1.edname AS "Borders Royal Exchange A"
FROM eds_census2011 N1, eds_census2011 N2
WHERE Touch(N1.the_geom, N2.the_geom)
AND N2 = 'Royal Exchange A'
我收到一个错误(如下)我必须添加到 Postgres 或启用某些东西吗?
ERROR: function touch(geometry, geometry) does not exist LINE 3: WHERE Touch(N1.the_geom, N2.the_geom) ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. ********** Error ********** ERROR: function touch(geometry, geometry) does not exist SQL state: 42883 Hint: No function matches the given name and argument types. You might need to add explicit type casts. Character: 96