Hi Frederic,<div><br></div><div>I think this is the case in other wrapper functions as well, because Shooting Star core returns a list of road links and the wrapper(s) just modify the output to return the geometry column, for example to draw the line. </div>

<div>This geometry is the one of your data and how the data was digitized. And some attributes may be different depending on the direction, best example are one way streets.</div><div><br></div><div>So it&#39;s a good question if the wrapper should care about this and flip the linestring, or if this should be up to the application to check for the right order of start and end of each road link. Because there might be direction dependent attributes that we don&#39;t know about and might go beyond a general function. </div>

<div><br></div><div>At the moment you have to care about this. But we can talk about if it should be done by pgRouting in the future. Maybe you can extend the shootingstar_sp_smart function to do it right.</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>

<br></div><div>Just as a side note, the first and last edge are added and don&#39;t exist in the network. So they are in the right direction because of that. Since the links don&#39;t really exist, they have no attributes either. </div>

<div><br></div><div>Daniel</div><div><br></div><div><br><div class="gmail_quote">2011/6/23 Frederic Junod <span dir="ltr">&lt;<a href="mailto:frederic.junod@camptocamp.com">frederic.junod@camptocamp.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
I&#39;m using the shootingstar_sp_smart function from<br>
<a href="https://github.com/pgRouting/pgrouting-contrib/" target="_blank">https://github.com/pgRouting/pgrouting-contrib/</a> and I&#39;m having an<br>
issue with the &quot;direction&quot; of the result.<br>
<br>
For example, the result of a query (from x to y) is:<br>
  x ---- a ---- b ---- c ---- y<br>
<br>
The function return something like:<br>
MULTILINESTRING((x, a))<br>
MULTILINESTRING((b, a))<br>
MULTILINESTRING((c, b))<br>
MULTILINESTRING((c, y))<br>
<br>
The first and last line are ok but the two other are reversed.<br>
Is my network ok ?<br>
<br>
Regards,<br>
fredj<br>
<font color="#888888"><br>
--<br>
Frédéric Junod<br>
Camptocamp SA<br>
_______________________________________________<br>
Pgrouting-users mailing list<br>
<a href="mailto:Pgrouting-users@lists.osgeo.org">Pgrouting-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Georepublic UG &amp; Georepublic Japan<br>eMail: <a href="mailto:daniel.kastl@georepublic.de" style="color:rgb(66, 99, 171)" target="_blank">daniel.kastl@georepublic.de</a><br>

Web: <a href="http://georepublic.de/" style="color:rgb(66, 99, 171)" target="_blank">http://georepublic.de</a></span><br>
</div>