
Hi Gerd, Is there a typo in the change to the rules? It looks like there's an extra dash in one of them. +mkgmap:country!=* & addr:country=* { set mkgmap:country='${addr:country|country-ISO:}' } +mkgmap:country!=* & is_in:country=* { set mkgmap:country='${is_in:country|country--ISO:}' } Colin On 2014-11-28 10:17, Gerd Petermann wrote:
Hi all,
see also http://gis.19327.n5.nabble.com/useless-rules-in-default-style-inc-address-tp... [2]
attached is a patch that implements a style filter to convert country names to the 3 character ISO code which is used in e.g. the address rules.
It also changes two rules in inc/address to use this filter and adds a simple check to ValueBuilder to report the case when a filter is expected but not recognized because of parser or syntax errors like in the case reported here: http://gis.19327.n5.nabble.com/Substring-returns-full-string-tp5825603.html [3]
Gerd
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev [1]
Links: ------ [1] http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev [2] http://gis.19327.n5.nabble.com/useless-rules-in-default-style-inc-address-tp... [3] http://gis.19327.n5.nabble.com/Substring-returns-full-string-tp5825603.html