PostGIS pgrouting
Posted 贝尔格里尔斯
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PostGIS pgrouting相关的知识,希望对你有一定的参考价值。
alter table roadline add column source integer;
alter table roadline add column target integer;
select pgr_createTopology(‘roadline‘, 0.0001, ‘geom‘, ‘gid‘);
SELECT seq, id1 AS node, id2 AS edge, cost, geom
FROM pgr_dijkstra(
‘SELECT gid as id, source, target, st_length(geom) as cost FROM roadline‘,
1, 2, false, false
) as di
JOIN roadline pt
ON di.id2 = pt.gid ;
以上是关于PostGIS pgrouting的主要内容,如果未能解决你的问题,请参考以下文章