logo separator

Quoting variable filter arguments

04
Jun

You can now quote the argument to a variable filter in a style file.

A simple contrived example:

# Fix short form and mis-spelling
highway=residential { set name '${name|subst:"(Raod|Rd)~>Road"}' ; }

For backward compatibility you do not have to do this and all existing styles should work as they are. However I would recommend that you start to quote all arguments that are more complex than a simple word. Before this change it was impossible to use a pipe symbol within a regular expression since it would be seen as the start of the next filter.

Posted by steve on 4 Jun 2014

Latest commits

  • mkgmap-r4767 raise minimum resolution of overview map to 13 to match the alignment of tiles produced by splitter with default resolution ....
    11 jun 2021
  • mkgmap-r4766 map-split.patch - fix possible "Problem writing line ..." message which caused data loss of huge polygons.
    11 jun 2021
  • mkgmap-r4765 rework roundabout checks (roundaboutchecks4.patch by Mike Baggaley).
    10 jun 2021
  • mkgmap-r4763 - fix bug in Coord.distToLineSegment(Coord a, Coord b), it returned Double.NaN when a and b are the same.
    08 jun 2021
  • mkgmap-r4760 minor performance tweak: only create node instance when it is needed.
    06 jun 2021
See more...