Ticket #190 (accepted bug report)
First edge and last edge don't respect the one way restriction
Reported by: | carlofrancesco | Owned by: | anton |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Shooting* | Version: | trunk |
Keywords: | oneway restriction shortest_path_shooting_star | Cc: |
Description
As told here http://pgrouting.postlbs.org/discussion/topic/308#message1160 shortest_path_shooting_star algorithm doesn't respect one-way restriction of the first and last edge:
look at this image: http://img132.imageshack.us/img132/8185/error2ia.jpg
edge_id|vertex_id|cost|street 4311;790;1001000138.79372;790;"RE G. (VIA)" 4150;501;61.479488767088;501;"PACCHIOTTI G. (VIA)" 6114;856;1001000142.27532;856;"LIONETTO (STR. DEL)"
Query is
SELECT ".TABLE.".*, AsText??(".TABLE.".the_geom) AS wkt FROM ".TABLE.", shortest_path_shooting_star('SELECT gid as id, source, target, cost, reverse_cost,
x1, y1, x2, y2, rule, to_cost FROM ".TABLE."', ".$startEdgegid?.", ".$endEdgegid?.", true, true) as rt
WHERE ".TABLE.".gid=rt.edge_id;