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-r4259 apply_first-v2.patch: Implement and document new apply_first style command..
    13 dec 2018
  • splitter-r592 route-complete.patch: Implement a new option --route-rel-values which tells splitter that route relations of the given type should be kept complete. ....
    13 dec 2018
  • mkgmap-r4257 defaultStyleTidy2.patch by Ticker Berkin. His comments:.
    26 nov 2018
  • mkgmap-r4256 Line pixmap width check, and unicode typ files.
    26 nov 2018
  • mkgmap-r4255 commit change that is needed since 4252.
    16 nov 2018
See more...