[pgrouting-users] ordering of route edges?

Daniel Kastl daniel at georepublic.de
Mon Nov 29 13:30:19 EST 2010


Hi Madison,

Could you send me your routing query to see how it looks like?

Daniel


2010/11/30 Madison Shaw <madisonshaw at googlemail.com>

> Hi There,
>
> I was wondering if someone could help me.  I have pgrouting working
> and producing routes using both Dijkstra and AStar, but the edges that
> are returned by the SQL are in the wrong order... not the order of the
> edges as you expect to move through the route from start to finish...
>
> eg: (using a short example)
>
> If I have a route of ten edges, from start edge 1 to finish edge 10 -
> I would expect the results to be: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 (using
> the id column that is returned from the sql)
>
> However, the results are more like 3, 6, 2, 8, 1, 9, 4, 7, 10, 5.
>
> Is this supposed to happen? Is there a way to return the results in
> the order you traverse through the route?
>
> Cheers
>
> Madison
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-users
>



-- 
Georepublic UG & Georepublic Japan
eMail: daniel.kastl at georepublic.de
Web: http://georepublic.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20101130/6a5b24b5/attachment.html


More information about the Pgrouting-users mailing list