Hi Maria.

If you need multiple restrictions for a given edge then you have to add
multiple records for that edge each with a separate restriction

http://pgrouting.postlbs.org/wiki/ShootingStar


Fred.





On Tue, May 4, 2010 at 10:14 AM, Maria Arias de Reyna <[email protected]>wrote:

> Hi,
>
> I'm trying to do a shooting_star calculation following this example:
>
> http://www.davidgis.fr/blog/index.php?2008/07/24/349-shooting-star-usage-example-with-turn-restriction
>
> But I think that it has a bug when reading the rule. If I try to set more
> than
> one restriction on a rule, like
>
> update routing set to_cost = 1000000,rule='9,5' where id = 6;
>
> it only works for the first edge defined on rule (9), not the second edge
> (5).
>
> Am I doing something wrong or is it a bug?
>
> If I invert the rule:
>
> update routing set to_cost = 1000000,rule='5,9' where id = 6;
>
> it works well for the first edge again (5), but not for the second (9).
>
> --
> María Arias de Reyna Domínguez
> Área de Operaciones
>
> Emergya Consultoría
> Tfno: +34 954 51 75 77 / +34 607 43 74 27
> Fax: +34 954 51 64 73
> www.emergya.es
> _______________________________________________
> postgis-users mailing list
> [email protected]
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
_______________________________________________
postgis-users mailing list
[email protected]
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to