logo separator

[mkgmap-dev] [Patch v1] style filter country-ISO

From Colin Smale colin.smale at xs4all.nl on Fri Nov 28 09:33:46 GMT 2014

 

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-tp5825575.html [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 at 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-tp5825575.html
[3]
http://gis.19327.n5.nabble.com/Substring-returns-full-string-tp5825603.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20141128/30ce4c45/attachment-0001.html>


More information about the mkgmap-dev mailing list