<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi I sent an email a couple of weeks ago, maybe I didnt write in a
good way because no one answered it.<br>
I got same problems with Dijkstra too, it chose opposite ways even
though with a huge cost.<br>
I can send the example if someone is interested, anyways Im afraid I
can not use pgrouting at least in 1.05 version with one way roads.<br>
regards,<br>
Jose<br>
<br>
<br>
On 08/12/2011 16:46, John Williams wrote:
<blockquote
cite="mid:CABKKsR+ucAF73s+4uCLuuSD2FpmvNTdKKgAJeTgA572CeXcvUQ@mail.gmail.com"
type="cite">I asked about this a few days ago and Steve mentioned
that the shooting star algorithm for one-ways may be broken on
1.05. I switched to Dijkstra and everything works fine for me
now...<br>
<br>
<div class="gmail_quote">On Thu, Dec 8, 2011 at 9:29 AM, Mehmet
Hilmi Elihos <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:elihos@gmail.com">elihos@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi to all,<br>
<br>
I'm trying to make routing with pg_routing algorithms.<br>
But i'm ahving problems with one way roads. Algorithm insists
on using opposite directional roads even i'm using the biggest
reverse_cost value.<br>
<br>
Here is the algorithm that i'm using.<br>
<br>
SELECT * FROM shortest_path_shooting_star(<br>
'SELECT gid as id, class_id, source, target,
length*c.cost as cost,<br>
x1, y1, x2, y2, rule, to_cost,
reverse_cost*c.cost as reverse_cost<br>
FROM ways w, classes c<br>
WHERE class_id=<a moz-do-not-send="true"
href="http://c.id" target="_blank">c.id</a>', 1450296,
1468993, true, true);<br>
<br>
the algorithm always ignores the reverse_cost and insists on
using opposite directional roads.<br>
<br>
Could you help me to solve this problem?<br>
<br>
You can find a snap_shot about this problem in the attachment.<br>
<br>
Thanks for your help<br>
<br>
<br>
_______________________________________________<br>
Pgrouting-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Pgrouting-users@lists.osgeo.org">Pgrouting-users@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users"
target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-users</a><br>
<br>
</blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Pgrouting-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pgrouting-users@lists.osgeo.org">Pgrouting-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users">http://lists.osgeo.org/mailman/listinfo/pgrouting-users</a>
</pre>
</blockquote>
<br>
</body>
</html>