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-r4476 mapnik-TYPViewer-2.patch by Ticker Berkin:.
    01 apr 2020
  • mkgmap-r4475 improvements for typ file source mapnik.txt.
    26 mar 2020
  • mkgmap-r4474 implement support for --copyright-file and --copyright-message option in PolishReader..
    23 mar 2020
  • mkgmap-r4473 use high precision in BoundaryQuadTree.Node.get().
    19 mar 2020
  • mkgmap-r4472 Make sure that getKeystring() doesn't return something like null=way for a rule which cannot be indexed, e.g..
    19 mar 2020
See more...