[pgrouting-users] directed and has_reverse_cost parameters

Mayeul KAUFFMANN mayeul.kauffmann at jrc.ec.europa.eu
Tue Jun 28 03:46:37 EDT 2011


Hi,
I'm not sure as I do not use those settings this way. Still my 2 cents:
Maybe your departure point is the node id of the end of road (not its
start) in a cul-de-sac? Try other departure and arrival points.
Mayeul

El lun, 27-06-2011 a las 16:31 -0400, Maxime Phaneuf escribió:
> Hi,
> 
> I was playing aroung with pgRouting 1.0.3 with this example  
> (http://www.davidgis.fr/documentation/pgrouting-1.02/). I used the  
> dijkstra_sp_directed() function  as stated in the example and  
> everything worked like it was supposed to.
> 
> But, I tried changing the has_reverse_cost to false in the same  
> function. I got no result back. I also tried with astar_directed, and  
> still no results. As far as I understand, if the directed parameter is  
> set to true and the has_reverse_cost is false, it means that reverse  
> direction is prohibited and if has_reverse_cost is true, the reverse  
> cost is used.
> 
> So, how come I get no result when I set has_reverse_cost to false  
> while directed is true?
> 
> THanks in advance,
> Maxime
> 
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-users

-- 
Dr. Mayeul KAUFFMANN, Conflict Specialist
European Commission, Joint Research Centre (JRC)
Institute for the Protection and Security of the Citizen (IPSC)
Global Security and Crisis Management - ISFEREA
Via E. Fermi 2749 - I-21027 Ispra (VA), ITALY
Phone: (+39) 033278 5071
http://isferea.jrc.ec.europa.eu/Staff/Pages/Kauffmann-Mayeul.aspx

(Office: building 26b, 1st floor, room 140. TP: 267)






More information about the Pgrouting-users mailing list