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-r4171 fix possible java.lang.AssertionError introduced with r4169.
    21 apr 2018
  • mkgmap-r4170 improve logging: use getCenter().toOSMURL() so that coordinates are not reported in Garmin units..
    20 apr 2018
  • mkgmap-r4169 don't print error message "Subdivision neg width" or "Subdivision neg height" for 0 values..
    20 apr 2018
  • display-r531 slightly modified display_io_1.patch.
    18 apr 2018
  • mkgmap-r4168 img_io4_incr.patch by Steve Ratcliffe.
    18 apr 2018
See more...