logo separator

[mkgmap-dev] Commit r3871: merge the if-then branch

From svn commit svn at mkgmap.org.uk on Tue Mar 28 06:17:34 BST 2017

Version mkgmap-r3871 was committed by gerd on Tue, 28 Mar 2017

merge the if-then branch

It brings three changes:
1) It adds if-then-else syntax for styles, might be useful for doing this:
if (mkgmap:option:routing=car) then
        include "inc/car-rules";
end
2) It adds the new option --style-option :
--style-option
        Provide a semicolon separated list of tags which can be used in the style.
        The intended use is to make a single style more flexible, e.g.
        you may want to use a slightly different set of rules for a map of
        a whole continent. The tags given will be prefixed with "mkgmap:option:".
        If no value is provided the default "true" is used. 
        This option allows to use rules like
        mkgmap:option:light=true & landuse=farmland {remove landuse}
        Example: -- style-option=light;routing=car
        will add the tags mkgmap:option:light=true and mkgmap:option:routing=car
        to each element before style processing happens. 

3) It adds the possibility to add multiple map objects with a singe rule, e.g. two rules using the same expression like
junction=roundabout & (highway=trunk | highway=trunk_link) [0x0c road_class=4 road_speed=2 resolution 24 continue]
junction=roundabout & (highway=trunk | highway=trunk_link) [0x10801 resolution 18]
can be written like this:
junction=roundabout & (highway=trunk | highway=trunk_link) [0x0c road_class=4 road_speed=2 resolution 24] [0x10801 resolution 18]


http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=3871


More information about the mkgmap-dev mailing list