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-r4429 Default style: Use railway=abandoned only as routable way when certain criterias match.
    21 jan 2020
  • mkgmap-r4425 Fix problems introduced with changes in the NET-no-NOD branch reg. routable maps at resolution 23 (merge in r4360):.
    17 jan 2020
  • mkgmap-r4424 see r4423, forgot changed unit test.
    17 jan 2020
  • mkgmap-r4423 improve *.typ file handling (Patch typCodePage_v4.patch by Ticker Berkin with small modifications).
    17 jan 2020
  • mkgmap-r4420 The ivy/maven repository is now https only.
    15 jan 2020
See more...