[mkgmap-dev] [PATCH v2] Move maxspeed calculations to style file
From WanMil wmgcnfg at web.de on Fri Aug 30 21:17:59 BST 2013
> > So "what you really want to avoid" is what was hapenning, now you can > set it yourself... > > > So the default should rather be: > maxspeed=* & maxspeedkmh() > 110 & > highway=motorway { set mkgmap:road-speed-class = 7 } > maxspeed=* & mkgmap:road-speed-class!=* maxspeedkmh() > 80 & ( > highway=motorway | highway=trunk ) { set mkgmap:road-speed-class = 6 } > maxspeed=* & mkgmap:road-speed-class!=* maxspeedkmh() > 60 & ( > highway=motorway | highway=trunk | highway=motorway_link | > highway=trunk_link | highway=primary ) { set mkgmap:road-speed-class = 5 } > maxspeed=* & mkgmap:road-speed-class!=* maxspeedkmh() > 40 & ( > highway=motorway | highway=trunk | highway=motorway_link | > highway=trunk_link | highway=primary | highway=primary_link | > highway=secondary ) { set mkgmap:road-speed-class = 4 } > ... maybe a special rule for maxspeed()>80 and tertiary.... > .... and continue including highways lower down... > > Ok, looks good to me. Anyhow I will not yet commit them to the branch. First I want to remove more code from the StyledConverter to reduce the usage of hardcoded tags. Maybe at a later stage of the branch I will come back to discuss resonable rules and then we can put them into the default style. Thanks! WanMil
- Previous message: [mkgmap-dev] [PATCH v2] Move maxspeed calculations to style file
- Next message: [mkgmap-dev] [PATCH v2] Move maxspeed calculations to style file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list