답변:
예, 회전 제한 최단 경로 (trsp)를 구현했습니다. 나는 그것이 origin / trsp에서 git branch로 체크인되었다고 생각합니다. 아직 문서화되지 않았습니다. 궁금한 점이 있거나 pgrouting list에 도움이 필요하면 행 아웃이 있기 때문입니다.
-스티브
이것을 찾고 있습니까?
7.2. Restricted access¶
Another possibility is to restrict access to roads of a certain type by either setting a very high cost for road links with a certain attribute or by not selecting certain road links at all:
UPDATE classes SET cost=100000 WHERE name LIKE 'motorway%';
Through subqueries you can “mix” your costs as you like and this will change the results of your routing request immediately. Cost changes will affect the next shortest path search, and there is no need to rebuild your network.
Of course certain road classes can be excluded in the WHERE clause of the query as well, for example exclude “living_street” class:
SELECT * FROM shortest_path_shooting_star(
'SELECT gid as id, class_id, source, target, length*c.cost as cost,
x1, y1, x2, y2, rule, to_cost, reverse_cost*c.cost as reverse_cost
FROM ways w, classes c
WHERE class_id=c.id AND class_id != 111', 6585, 8247, true, true);
Of course pgRouting allows you all kind of SQL that is possible with PostgreSQL/PostGIS.
워크샵에서 나온 조각입니다.