[Patch v1] use --country-name / --country-abbr to set mkgmap:admin_level2

27 Nov
2014
27 Nov
'14
1:51 p.m.
Hi all, attached is a small patch which allows to use the options country-name or country-abbr to set a default value for the tag mkgmap:country which is important for the address rules. This should help those users who live in a big country like the USA and try to create a map without downloading the precompiled boundaries and instead use the boundaries contained in the OSM file for e.g. one state. The patch works like this: If the LocationHook did not set mkgmap:admin_level2 : if --country-abbr is given, use the value to set mkgmap:admin_level2 else if --country-name is given, get the ISO name from LocatorConfig.xml and set mkgmap:admin_level2 with that. Of course this happens before style evaluation. Gerd
3741
Age (days ago)
3741
Last active (days ago)
0 comments
1 participants
participants (1)
-
Gerd Petermann