<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi all,<br><br>attached is a small patch which allows to use the options country-name or country-abbr<br>to set a default value for the tag mkgmap:country which is important for the <br>address rules.<br>This should help those users who live in a big country like the USA and try to create<br>a map without downloading the precompiled boundaries and instead use the boundaries<br>contained in the OSM file for e.g. one state.<br><br>The patch works like this:<br>If the LocationHook did not set mkgmap:admin_level2 :<br>&nbsp;if --country-abbr is given, use the value to set mkgmap:admin_level2 <br>else if --country-name is given, get the ISO name from LocatorConfig.xml and <br>&nbsp; set mkgmap:admin_level2 with that.<br><br>Of course this happens before style evaluation.<br><br>Gerd<br><br><br><br>                                               </div></body>
</html>