[pgrouting-users] routing in linestring trouble

Stephen Woodbridge woodbri at swoodbridge.com
Sat Feb 19 10:53:59 EST 2011


Andrea,

You have to use "noded" data. All linstrings must be broken at 
intersections, like:

BAD                 GOOD

A                   A
|                   |
|                   |
|B----------D       B----------D
|                   |
|                   |
C                   C


A->C, B->D          A->B, B->C, B->D

-Steve

On 2/19/2011 9:36 AM, Andrea Mazzeschi wrote:
> Hi! I've got a problem using LINESTRING in my project.
> In my map I've a principal road and some other roads starting perpendicular from this one.
> For example:
> Main road (0 0, 0 10)
> r1(0 2 ,2 2)
> r2(0 5, 20 5)
> If I try to route from one point of a rod to another belonging to an other road, it doesn't work and I don't understand why.
> Can anyone  help me?
> (thanks and sorry for my bad english)
> _____________________
>
> zEuSsE
> e.mail: zeusxxl at virgilio.it
>
>
>
>
> _______________________________________________
> 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