[postgis-users] ShootingStar: Rule with comma separated... bug?

Fred Lehodey lehodey at gmail.com
Tue May 4 02:42:20 PDT 2010


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 <marias at emergya.es>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
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20100504/da78faae/attachment.html>


More information about the postgis-users mailing list