<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 v3 of the patch. I think we should finish this before <br>we start with the coding for the non-rectangular tiles support.<br><br>1) I've tried to make sure that the flags in TRE and NOD are set to equal values.<br><br>2) The options --drive-on-left and --drive-on-right are deprecated but still<br>evaluated, for now a warning is printed when they are used.<br>The new option --drive-on=detect|right|left should be used instead.<br>The value detect enables a rather complex (but not CPU-intensive) algo:<br>1) For each roundabout it checks if the country is known and -- if so -- if the country <br>is a drive-on-left country. <br>2) If the number of "dol" roundabouts is larger than the rest, the internal drive-on switch is<br>set to "left", similar the internal drive-on switch is set to "right" if the number of "dor" roundabouts is <br>larger than the rest.<br>This works only if either a complete bounds file is used or the default country is set with <br>--country-abbr or --country-name.<br>3) If option --check-roundabouts is used and the internal drive-on switch is still "detect",<br>than the first found roundabout is used to set the internal drive--on switch.<br>4) Finally, If the internal drive-on switch is "left", the flags in the headers&nbsp; are set to 1.<br>5) The polish fomat reader now recognizes the line<br>LeftSideTraffic=Y<br>in the mp file.<br>6) If the user specifies --drive-on=left, both header flags are set to 1, no matter what <br>roundabouts are found.<br><br>@Steve, WanMil:<br>I've added a ThreadLocal&lt;boolean&gt; to TREHeader similar to that in NODHeader,<br>but I think it would be better to store that info only once for each thread,<br>I just don't know where, maybe MapMaker?<br>Besides that I am not sure how this works when we write two different TREHeader files<br>in one thread (one for the overview map data ovm_*.img)<br>(well, the flag in these files is ignored anyway)<br>Please suggest a better solution.<br><br>Gerd<br><br><br>                                               </div></body>
</html>