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

2010-05-04 Thread Maria Arias de Reyna
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 = 100,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 = 100,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@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


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

2010-05-04 Thread Fred Lehodey
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 mar...@emergya.eswrote:

 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 = 100,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 = 100,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@postgis.refractions.net
 http://postgis.refractions.net/mailman/listinfo/postgis-users

___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


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

2010-05-04 Thread Maria Arias de Reyna
El Tuesday 04 May 2010, Fred Lehodey escribió:
 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.

Thanks Fred :)

I suppose that I followed deprecated tutorials.


-- 
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@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users