[pgrouting-users] routing in linestring trouble

Andrea Mazzeschi zeusxxl at virgilio.it
Sat Feb 19 11:00:38 EST 2011


Ok thank you very much!
I've tried in this way, and it works!

Il giorno 19/feb/2011, alle ore 16.53, Stephen Woodbridge ha scritto:

> 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
> 
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-users


_____________________

zEuSsE
e.mail: zeusxxl at virgilio.it






More information about the Pgrouting-users mailing list