Hi Bernd, I think you should not change or interpret the values starting with mkgmap:cache_ It is some kind of trick within mkgmap and not documented.
Besides that your solution doesn't work with 15mph, which results in 24.14 kmh The table states that 15mph should be treated like 20 km/h. I think we should change the threshold values in the rules instead of manipulating undocumented values, presuming that the table in the file is correct. Ciao, Gerd Bernd Weigelt wrote > Am Sonntag, 15. März 2015, 15:08:44 schrieb Gerd Petermann: >> Andrzejs version makes sure that the include doesn't >> override mkgmap:road-speed-max if it was set anywhere >> before. I think we should keep it that way. > Ok, i thougt, because mkgmap:road-speed-max is set only in inc/roadspeed, > i > can use a short line. > >> >> reg. 25mph=40.25 kmh : >> Do you propose to change the rule to 41 like below? >> maxspeed=* & mkgmap:road-speed-max!=* & maxspeedkmh() <= 41 { set >> mkgmap:road-speed-max = 2 } > > Can we reformat maxspeedkmh() with > > maxspeed=* & mkgmap:cache_maxspeedkmh=* {set > mkgmap:cache_maxspeedkmh='${mkgmap:cache_maxspeedkmh|part:.:1}'} > > see the attached file > > Bernd > > > -- > amarok2 now playing: > > > > > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev@.org > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > > roadspeed (1K) > <http://gis.19327.n5.nabble.com/attachment/5837269/0/roadspeed> Bernd Weigelt wrote > Am Sonntag, 15. März 2015, 15:08:44 schrieb Gerd Petermann: >> Andrzejs version makes sure that the include doesn't >> override mkgmap:road-speed-max if it was set anywhere >> before. I think we should keep it that way. > Ok, i thougt, because mkgmap:road-speed-max is set only in inc/roadspeed, > i > can use a short line. > >> >> reg. 25mph=40.25 kmh : >> Do you propose to change the rule to 41 like below? >> maxspeed=* & mkgmap:road-speed-max!=* & maxspeedkmh() <= 41 { set >> mkgmap:road-speed-max = 2 } > > Can we reformat maxspeedkmh() with > > maxspeed=* & mkgmap:cache_maxspeedkmh=* {set > mkgmap:cache_maxspeedkmh='${mkgmap:cache_maxspeedkmh|part:.:1}'} > > see the attached file > > Bernd > > > -- > amarok2 now playing: > > > > > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev@.org > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > > roadspeed (1K) > <http://gis.19327.n5.nabble.com/attachment/5837269/0/roadspeed> -- View this message in context: http://gis.19327.n5.nabble.com/roadspeed-in-default-style-tp5836280p5837276.html Sent from the Mkgmap Development mailing list archive at Nabble.com. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev