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-r4315 code cleanup: remove obsolete call of Collections.sort() after call of MdrUtils.sortList() which already does this..
    21 oct 2019
  • mkgmap-r4314 fix assertion error when option --make-poi-index is used.
    21 oct 2019
  • mkgmap-r4313 Improve code readability, no change in output expected.
    21 oct 2019
  • mkgmap-r4311 Ignore turn restrictions in ElementSaver when map is not routable to supress warning "ignoring unspecified/unsupported restriction" for type=restriction relations..
    21 oct 2019
  • mkgmap-r4310 Code cleanup, no change in output expected.
    21 oct 2019
See more...