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-r4278 correct code that checks for existing ovm_*.img,.
    13 feb 2019
  • mkgmap-r4277 partly revert r4276: don't print message.
    13 feb 2019
  • mkgmap-r4276 Print useful message when no input file was given.
    13 feb 2019
  • mkgmap-r4275 improve reader for polish (*.mp) format:.
    12 feb 2019
  • mkgmap-r4274 revert changes from r4273, not the right place to do this.
    12 feb 2019
See more...