SELECT pgr_nodeNetwork查询失败

时间:2015-04-25 11:52:08

标签: postgresql postgis pgrouting

我正在开发Windows,并启用了postgis扩展,pgrouting数据库。我安装了postgreSQL 9.4,并且我正在使用来自无限研讨会(http://workshops.boundlessgeo.com/tutorial-routing/)的数据。

SELECT pgr_nodeNetwork('edges',0.001,'geom','gid','noded')

当我运行此查询时,它会运行大约1分钟,之后会生成FAIL。我该如何解决这个问题?我的pgr_createTopology查询已成功运行。

NOTICE:  PROCESSING:
NOTICE:  pgr_nodeNetwork('edges',0.001,'geom','gid','noded')
NOTICE:  Performing checks, pelase wait .....
NOTICE:  Processing, pelase wait .....
ERROR:  line_locate_point: 1st arg isnt a line
CONTEXT:  SQL statement "create temp table inter_loc on commit drop as ( select * from (
        (select l1id, l2id, st_linelocatepoint(line,source) as locus from intergeom)
         union
        (select l1id, l2id, st_linelocatepoint(line,target) as locus from intergeom)) as foo
        where locus<>0 and locus<>1)"
PL/pgSQL function pgr_nodenetwork(text,double precision,text,text,text) line 184 at EXECUTE statement
********** Error **********

ERROR: line_locate_point: 1st arg isnt a line
SQL state: XX000
Context: SQL statement "create temp table inter_loc on commit drop as ( select * from (
        (select l1id, l2id, st_linelocatepoint(line,source) as locus from intergeom)
         union
        (select l1id, l2id, st_linelocatepoint(line,target) as locus from intergeom)) as foo
        where locus<>0 and locus<>1)"
PL/pgSQL function pgr_nodenetwork(text,double precision,text,text,text) line 184 at EXECUTE statement

0 个答案:

没有答案