logo separator

[mkgmap-dev] roadspeed in default style

From Andrzej Popowski popej at poczta.onet.pl on Fri Mar 13 18:44:45 GMT 2015

Hi Gerd,

 > I think these two rules
 > maxspeed~'.*:urban'             { set maxspeed=50 }
 > maxspeed~'.*:rural'             { set maxspeed=90 }

 > make it impossible that these 4 rules will ever fire:
 > maxspeed=AT:rural               { set maxspeed=100 }
 > maxspeed=DE:rural               { set maxspeed=100 }
 > maxspeed=RU:urban               { set maxspeed=60 }
 > maxspeed=UA:urban               { set maxspeed=60 }

Right, thanks Gerd. Should be reversed, specific countries first and 
catch all last:

maxspeed=AT:rural               { set maxspeed=100 }
maxspeed=DE:rural               { set maxspeed=100 }
maxspeed~'.*:rural'             { set maxspeed=90 }

maxspeed=RU:urban               { set maxspeed=60 }
maxspeed=UA:urban               { set maxspeed=60 }
maxspeed~'.*:urban'             { set maxspeed=50 }

-- 
Best regards,
Andrzej


More information about the mkgmap-dev mailing list