<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 Brian,<br><br>yes, looks good to me. If it doesn't work, maybe you<br>did not use the --style-file option to point mkgmap<br>to this version?<br>I had those problems when changing a style file<br>in the sources because my Eclipse environment still<br>used the files in the previously built mkgmap.jar.<br><br>Gerd<br><br><div><hr id="stopSpelling">From: brianegge@gmail.com<br>Date: Thu, 30 Oct 2014 12:30:02 +0000<br>To: mkgmap-dev@lists.mkgmap.org.uk<br>Subject: Re: [mkgmap-dev] Building northeast map<br><br>Looking closer, I think it should be able to pick up the country from the is_in:country tag, which is often set on cities and states.&nbsp;<div><br></div><div>The address rules contain:</div><div><div># first set the country code</div><div>mkgmap:country!=* &amp; mkgmap:admin_level2=* { set mkgmap:country='${mkgmap:admin_level2}' }</div><div>mkgmap:country!=* &amp; addr:country=* { set mkgmap:country='${addr:country}' }</div><div>mkgmap:country!=* &amp; is_in:country=* { set mkgmap:country='${is_in:country}' }</div></div><div><br></div><div>An example city is Danbury:</div><div><a href="http://www.openstreetmap.org/way/33271879" target="_blank">http://www.openstreetmap.org/way/33271879</a></div><div>which has the country set:</div><div><table class="ecxbrowse-tag-list" style="border-spacing:0px;width:310px;border:1px solid rgb(221,221,221);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;font-size:12px;table-layout:fixed;color:rgb(34,34,34);font-family:'Helvetica Neue',Arial,sans-serif;line-height:19.9992008209229px;background-color:rgb(246,246,246);"><tbody><tr><th class="ecxbrowse-tag-k" style="padding:6px 10px;line-height:20px;font-weight:500;vertical-align:top;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);width:154px;word-wrap:break-word;"><a href="http://wiki.openstreetmap.org/wiki/Key:is%20in:country?uselang=en-US" title="The wiki description page for the is_in:country tag" style="color:rgb(34,68,221);text-decoration:none;" target="_blank">is_in:country</a></th><td class="ecxbrowse-tag-v" style="padding:6px 10px;line-height:20px;vertical-align:middle;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);width:154px;word-wrap:break-word;border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-color:rgb(255,255,255);">USA</td></tr><tr><th class="ecxbrowse-tag-k" style="padding:6px 10px;line-height:20px;font-weight:500;vertical-align:top;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);width:154px;word-wrap:break-word;"><a href="http://wiki.openstreetmap.org/wiki/Key:is%20in:country%20code?uselang=en-US" title="The wiki description page for the is_in:country_code tag" style="color:rgb(34,68,221);text-decoration:none;" target="_blank">is_in:country_code</a></th><td class="ecxbrowse-tag-v" style="padding:6px 10px;line-height:20px;vertical-align:middle;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);width:154px;word-wrap:break-word;border-left-width:1px;border-left-style:solid;border-left-color:rgb(221,221,221);background-color:rgb(255,255,255);">US</td></tr></tbody></table><div>I think it should be picking up the country from these tags. I'll have to run some tests to see why this isn't happening.</div><div><br></div><div>Thanks.</div><div>Brian</div><div><br></div></div><br><div class="ecxgmail_quote">On Thu Oct 30 2014 at 8:23:54 AM Brian Egge &lt;<a href="mailto:brianegge@gmail.com">brianegge@gmail.com</a>&gt; wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;"><br><br><div class="ecxgmail_quote">On Thu Oct 30 2014 at 6:24:48 AM Andrzej Popowski &lt;<a href="mailto:popej@poczta.onet.pl" target="_blank">popej@poczta.onet.pl</a>&gt; wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
&nbsp;&gt; I fear the meanings of the --country-xxx options are not well<br>
&nbsp;&gt; documented.<br>
<br>
I have once tried to find what are they for but failed. I would suggest<br>
to not use --country-xxx or --region-xxx in command line options. I<br>
think the real definitions are inside style, see include/address file:<br>
# United States<br>
mkgmap:country=USA &amp; mkgmap:region!=* &amp; mkgmap:admin_level4=* { set<br>
mkgmap:region='${mkgmap:admin_<u></u><u></u>level4}' }<br>
<br>
I think that setting country or region in options can damage these<br>
rules. Or create some inconsistency in map.<br>
<br>
--<br>
Best regards,<br>
Andrzej<br>
______________________________<u></u><u></u>_________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/<u></u>mailm<u></u>an/listinfo/mkgmap-dev</a><br>
</blockquote></div></blockquote></div>
<br>_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</div>                                               </div></body>
</html>