Am Donnerstag, 12. März 2015, 19:21:42 schrieb Bernd Weigelt:
> I don't see any problem with Andrzej's speed rules, i will test them asap
Hmmh, but i have some questions
Example a motorway in Germany, tagged with maxspeed=none
maxspeed=none { set maxspeed=140 }
ok, i unterstand what this rule does
maxspeed~'.*:motorway' { set maxspeed=130 }
now decrease the maxspeed to 130 kmh
ok, but if there is no speed limit not useful
first question, what should this rule do?
maxspeed=* & maxspeedkmh()!=* { delete maxspeed }
back to the example
maxspeed=130 *and* maxspeedkmh() *and* mkgmap:road-speed-max not set
my motorway stays in between this rules, IMHO it should be set to
mkgmap:road-speed-max = 7 or mkgmap:road-speed = 7
maxspeed=* & mkgmap:road-speed-max!=* & maxspeedkmh() <= 120
{ set mkgmap:road-speed='-0'; set mkgmap:road-speed-max = 6 }
maxspeed=* & mkgmap:road-speed-max!=* & maxspeedkmh() != * { set
mkgmap:road-speed='-0'; set mkgmap:road-speed-max = 7 }
the last rules should be
maxspeed up to 120 kmh
maxspeed=* & mkgmap:road-speed-max!=* & maxspeedkmh() <= 120
{ set mkgmap:road-speed='-0'; set mkgmap:road-speed-max = 6 }
maxspeed higher then 120 kmh
maxspeed=* & mkgmap:road-speed-class!=* & maxspeedkmh() > 120
{ set mkgmap:road-speed-class = 7 }
maybe i'm wrong
Bernd
--
amarok2 now playing:
artist: Elvis Presley
title: Bridge Over Troubled Water
album: Viva Las Vegas
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev