Closed woodbri closed 8 years ago
If you intend to use the values an algorithm that don't correctly creates the directed/undirected graph based on the fct that negative values are not inserted, then you can modify the generated negative values (the edge does not exist) to be highly costly.
There is clearly a bug here because the software does not behave the same way for one_way=1 vs. one_way=2.
I presume one_way =0, both ways ok, =1 from-to is ok, =2 to-from is ok. But I could not find where this is documented.
Probably the documentation made by GSoc Student is incomplete
" one_way int, "
-1 reversed (1 way but geometry is reversed)
0 unknown,
1 yes(normal direction),
2 not one way its 2 way,
3 - reversible (one way street but direction changes on time)
0 & 2 & 3 put positive values on all cost /reverse_cost -1 has negative value on cost column 1 has negative value on reverse_cost column
using
This is osm2pgrouting Version 2.1
, I just noticed thatcost
andreverse_cost
values are NOT set to 1000000 for the wrong way on one_way streets. The same forcost_s
andreverse_cost_s
. In fact it is even worse than that because the reverse_cost forone_way=1
are negative values which might be ok if the algorithm eliminates these edges, but whenone_way in (0,2)
both values are positive.