[pgrouting-users] Get the edges in correct order
ancaag04 at alumnos.unex.es
ancaag04 at alumnos.unex.es
Wed Sep 7 23:35:00 EDT 2011
Hello Steve, I know the discussion, but the problem is different.
For example, this image [1] shows a part of the city. I have marked the start and
end edges.
Now I have this query:
SELECT gid, AsText(the_geom) AS the_geom
FROM shootingstar_sp('ways', 552, 1096, 0.1, 'length', true, true);
This image [2] shows the results.
[1] http://img828.imageshack.us/img828/7915/segments.png
[2] http://img215.imageshack.us/img215/5103/resultsi.png
I'm doing something wrong?
Thank you.
--
Antonio
> On 8/31/2011 11:28 PM, ancaag04 at alumnos.unex.es wrote:
>> Hello, i'm using A-star like this:
>>
>> SELECT gid, AsText(the_geom) AS the_geom
>> FROM astar_sp_delta('ways', 2124, 2168, 0.1);
>>
>> The path is correct but sometimes I don't get the edges in the correct order.
>> Is this normal?
>
> I think the edges are always in the correct order, but some times the
> edge is reversed from the direction that you traverse it on the route.
> This has been discussed in the past and I have posted an algorithm to
> correct that, but I do not have a link to it handy.
>
> -Steve
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-users
>
More information about the Pgrouting-users
mailing list