logo separator

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

From Gerd Petermann gpetermann_muenchen at hotmail.com on Thu Nov 27 13:51:16 GMT 2014

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



 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20141127/733fd94f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: defaultCountry-v1.patch
Type: application/octet-stream
Size: 1988 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20141127/733fd94f/attachment.obj>


More information about the mkgmap-dev mailing list