简体   繁体   中英

pgr_createTopology says no function matches

I know the attributes have to be in a certain order which I checked. Also the manual says it was renamed in version 2.0 but i can't see a difference.

SQL error:
function pgr_createtopology(unknown, numeric, unknown, unknown) does not exist
LINE 1: SELECT pgr_createTopology('edges', 0.000001, 'way', 'osm_id'...
               ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

In statement:

SELECT pgr_createTopology('edges', 0.000001, 'way', 'osm_id')

向您的参数文字添加显式类型强制转换可解决此问题

SELECT pgr_createTopology('edges'::text, 0.000001, 'way'::text, 'osm_id'::text)

Check your pgRouting version. Extension might not be installed.

SELECT pgr_version();

you should get something like this:

(2.0.0,pgrouting-2.0.0,0,f26831f,master,1.53.0)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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