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



                                          

Attachment: defaultCountry-v1.patch
Description: Binary data

_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to