logo separator

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

From GerdP gpetermann_muenchen at hotmail.com on Fri Nov 28 10:03:59 GMT 2014

Hi Colin,

yes, sorry, that typo was left when I tested the error message for syntax
errors.

Gerd


Colin Smale wrote
> 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 .org

>> 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
> _______________________________________________
> mkgmap-dev mailing list

> mkgmap-dev at .org

> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev





--
View this message in context: http://gis.19327.n5.nabble.com/Patch-v1-style-filter-country-ISO-tp5825675p5825685.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.


More information about the mkgmap-dev mailing list