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-r4555 juncArea.path by Ticker Berkin.
    22 jun 2020
  • mkgmap-r4554 Fix for text rendering of documentation.
    22 jun 2020
  • mkgmap-r4553 doc: improve formatting (miscDoc_v3.patch by Ticker Berkin).
    20 jun 2020
  • mkgmap-r4552 miscDoc_v2.patch by Ticker Berkin:.
    20 jun 2020
  • mkgmap-r4551 Report type(node,way,relation) of original element in "generated from" messages (slightly modified generated-from.patch).
    19 jun 2020
See more...