<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Gerd, thank's for the solution. I have testet the patched
    r-3678.jar  binary for two examples. It works  well.  But i must
    make a few more test's. Till now, all is okay.. <br>
     Thomas<br>
    <div class="moz-cite-prefix">Am 09.07.2016 um 08:14 schrieb Gerd
      Petermann:<br>
    </div>
    <blockquote
cite="mid:HE1PR08MB07641F35A333BCC5043021B19E3D0@HE1PR08MB0764.eurprd08.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
        <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
          <p>Hi Thomas,</p>
          <p><br>
          </p>
          <p>okay, I have now checked your test case as well.</p>
          <p>I think Steve has already explained why the change in r3674
            introduced the problem,</p>
          <p>the newer versions read the input files in sorted order
            when creating the overview map,</p>
          <p>older releases used the order given in the command line.</p>
          <br>
          <p>A simple work-around would be to use higher numbers for the
            tiles which should be processed later,</p>
          <p>e.g. 9999 instead of 4000 for the contour tiles.</p>
          <p><br>
          </p>
          <p>A better solution would be to detect the needed resolution.
            The problem here:</p>
          <p>mkgmap has to read all input tiles (completely) to find out
            which one uses the lowest resolution,</p>
          <p>current code doesn't allow to read only the levels info. So
            one has to accept a longer run time.</p>
          <p>I don't know if that is really needed, maybe an empty
            overview map can always use a low resoltion<br>
          </p>
          <p>like 12?<br>
          </p>
          <p><br>
          </p>
          <p>Another solution would be to evaluate the overview-levels
            option as suggested by Steve.</p>
          <p><br>
          </p>
          <p>In your case the overview map is empty, it contains only
            the 0x4a polygons, so it is quite simple.</p>
          <p><br>
          </p>
          <p>I have no idea what mkgmap should do when a user tries to
            combine ovm*.img files which were
            <br>
          </p>
          <p>created with different overview-level options, I leave that
            open.<br>
          </p>
          <p><br>
          </p>
          <p>I've impemented both alternatives in the attached patch, a
            binary based on r3678 is here:</p>
          <p><a moz-do-not-send="true" id="LPlnk87707"
              href="http://files.mkgmap.org.uk/download/299/mkgmap.jar"
              class="OWAAutoLink">http://files.mkgmap.org.uk/download/299/mkgmap.jar</a></p>
          <p><br>
          </p>
          <p>The patch solves your problem, but I'd prefer to avoid the
            additional reading of all input files</p>
          <p>before the overview map is produced. <br>
          </p>
          <p>@all : What do you think about the alternative to use a
            fixed resolution of 12 for an overview map<br>
          </p>
          <p>that contains only the tile boundary infos?<br>
          </p>
          <p><br>
          </p>
          <p>Gerd<br>
          </p>
          <p><br>
          </p>
          <p><br>
          </p>
        </div>
        <hr style="display:inline-block;width:98%" tabindex="-1">
        <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
            color="#000000" face="Calibri, sans-serif"><b>Von:</b>
            mkgmap-dev <a class="moz-txt-link-rfc2396E" href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk"><mkgmap-dev-bounces@lists.mkgmap.org.uk></a> im
            Auftrag von Thomas Morgenstern <a class="moz-txt-link-rfc2396E" href="mailto:webmaster@img2ms.de"><webmaster@img2ms.de></a><br>
            <b>Gesendet:</b> Freitag, 8. Juli 2016 20:41:08<br>
            <b>An:</b> Development list for mkgmap<br>
            <b>Betreff:</b> Re: [mkgmap-dev] r3678 and overview map
            problems</font>
          <div> </div>
        </div>
        <div>Hi Gerd , Update:<br>
          <br>
          r-3778 create now 1 0x4a like expected. This is a good news.
          But in my testenvironment are 2 osm-tiles and 1 contourtile.
          One of the osmtile has a wrong position. it is shifted to east
          ~22 degrees. The tile itself has 25.4 degreees east-west .<br>
          thomas<br>
          <br>
          <div class="moz-cite-prefix">Am 08.07.2016 um 16:49 schrieb
            Thomas Morgenstern:<br>
          </div>
          <blockquote cite="mid:577FBD81.6060707@img2ms.de" type="cite">Hi
            Gerd, <br>
            i have tested r-3677 and the preview in my case is  wrong. <br>
            <div style="direction: ltr;" id="destText" class="textArea">
              <div paragraphname="paragraph0"><span class=""
                  id="ouHighlight__0_2TO0_0" issource="false"
                  paragraphname="paragraph0" dstinfo="0:0" srcinfo="0:2">I</span><span
                  id="noHighlight_0.6609879397364626">
                </span><span class="" id="ouHighlight__4_8TO2_6"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="2:6" srcinfo="4:8">think</span><span
                  id="noHighlight_0.8671929844600369">
                </span><span class="" id="ouHighlight__11_13TO8_10"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="8:10" srcinfo="11:13">the</span><span
                  id="noHighlight_0.42043702830316254">
                </span><span id="ouHighlight__15_20TO12_16"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="12:16" srcinfo="15:20">error</span><span
                  id="noHighlight_0.5613260298901476"> is
                </span><span id="ouHighlight__28_32TO21_23"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="21:23" srcinfo="28:32">not</span><span
                  id="noHighlight_0.5968350760764042">
                </span><span id="ouHighlight__22_26TO25_27"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="25:27" srcinfo="22:26">due</span><span
                  id="noHighlight_0.05302770700931869">
                </span><span id="ouHighlight__34_35TO29_30"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="29:30" srcinfo="34:35">to</span><span
                  id="noHighlight_0.9595463971669658">
                </span><span id="ouHighlight__37_39TO32_34"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="32:34" srcinfo="37:39">the</span><span
                  id="noHighlight_0.317599594019204">
                </span><span id="ouHighlight__41_48TO36_43"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="36:43" srcinfo="41:48">TileSize</span><span
                  id="noHighlight_0.12604731884580989">.</span><span
                  id="noHighlight_0.3119179232904208">
                </span><span id="ouHighlight__51_53TO46_48"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="46:48" srcinfo="51:53">The</span><span
                  id="noHighlight_0.7741781224096621">
                </span><span id="ouHighlight__55_60TO50_54"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="50:54" srcinfo="55:60">error</span><span
                  id="noHighlight_0.764535968987626">
                </span><span id="ouHighlight__62_70TO56_61"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="56:61" srcinfo="62:70">occurs,</span><span
                  id="noHighlight_0.6687454050769607">
                </span><span id="ouHighlight__73_76TO63_64"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="63:64" srcinfo="73:76">if</span><span
                  id="noHighlight_0.4591032605840315">
                </span><span id="ouHighlight__89_91TO66_68"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="66:68" srcinfo="89:91">the</span><span
                  id="noHighlight_0.707774668323124">
                </span><span id="ouHighlight__93_93TO70_70"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="70:70" srcinfo="93:93">2</span><span
                  id="noHighlight_0.39896314509727104">
                </span><span id="ouHighlight__95_104TO72_81"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="72:81" srcinfo="95:104">OSM- tiles</span><span
                  id="noHighlight_0.45189654170622506">
                </span><span id="ouHighlight__149_154TO83_84"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="83:84" srcinfo="149:154">be</span><span
                  id="noHighlight_0.49242904622021977">
                </span><span id="ouHighlight__139_147TO86_89"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="86:89" srcinfo="139:147">used</span><span
                  id="noHighlight_0.9926277194775412">
                </span><span class="" id="ouHighlight__106_106TO91_91"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="91:91" srcinfo="106:106">and 1</span><span
                  id="noHighlight_0.2508914163127768">
                </span><span id="ouHighlight__108_111TO93_94"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="93:94" srcinfo="108:111">or</span><span
                  id="noHighlight_0.4367184933256488">
                </span><span class="" id="ouHighlight__113_119TO96_99"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="96:99" srcinfo="113:119">more</span><span
                  id="noHighlight_0.9590742413422363">
                </span><span class="" id="ouHighlight__121_137TO101_117"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="101:117" srcinfo="121:137">Contourline tiles</span><span
                  id="noHighlight_0.7726671179889487">
                </span><span class="" id="ouHighlight__78_87TO119_129"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="119:129" srcinfo="78:87">in addition</span><span
                  id="noHighlight_0.9859325340999044">.</span><span
                  id="noHighlight_0.7754870676533684">
                </span><span id="ouHighlight__157_159TO132_134"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="132:134" srcinfo="157:159">The</span><span
                  id="noHighlight_0.3294073990566473">
                </span><span id="ouHighlight__161_173TO136_146"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="136:146" srcinfo="161:173">transparent</span><span
                  id="noHighlight_0.5678330099656443">
                </span><span id="ouHighlight__175_190TO148_163"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="148:163" srcinfo="175:190">contourlinetiles</span><span
                  id="noHighlight_0.8115583110498569">
                </span><span id="ouHighlight__192_197TO165_167"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="165:167" srcinfo="192:197">lie</span><span
                  id="noHighlight_0.8471340564116268">
                </span><span id="ouHighlight__199_207TO169_174"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="169:174" srcinfo="199:207">within</span><span
                  id="noHighlight_0.5624158168953287">
                </span><span class="" id="ouHighlight__209_211TO176_178"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="176:178" srcinfo="209:211">the</span><span
                  id="noHighlight_0.19323298038839476">
                </span><span class="" id="ouHighlight__213_221TO180_188"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="180:188" srcinfo="213:221">OSM tiles</span><span
                  id="noHighlight_0.3476748811428878">
                </span><span class="" id="ouHighlight__223_224TO190_191"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="190:191" srcinfo="223:224">(1</span><span
                  id="noHighlight_0.35660410164017275">
                </span><span id="ouHighlight__226_229TO193_202"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="193:202" srcinfo="226:229">degree square</span><span
                  id="noHighlight_0.6447514983012435">
                </span><span class="" id="ouHighlight__231_237TO204_208"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="204:208" srcinfo="231:237">grid)</span><span
                  id="noHighlight_0.3302807815687028">. If only used the
                  OSM-Tiles, then the preview is okay and has the
                </span><span class="" id="ouHighlight__241_243TO211_213"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="211:213" srcinfo="241:243"></span><span
                  id="noHighlight_0.9160959212811113"></span><span
                  class="" id="ouHighlight__245_248TO215_217"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="215:217" srcinfo="245:248"></span><span
                  id="noHighlight_0.5641246558560592"></span><span
                  class="" id="ouHighlight__250_258TO219_226"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="219:226" srcinfo="250:258">expected</span><span
                  id="noHighlight_0.19588279115066798">
                </span><span class="" id="ouHighlight__260_264TO228_231"
                  issource="false" paragraphname="paragraph0"
                  dstinfo="228:231" srcinfo="260:264">size with one
                  Mapselectionarea. You can download my test-environment
                  from http\img2ms.de\Downloads\Test.rar. Inside the rar
                  are 3 tiles  and my mkgmap -bat. <br>
                  <br>
                  <br>
                  thomas<br>
                </span></div>
            </div>
            <br>
            <div class="moz-cite-prefix">Am 08.07.2016 um 09:54 schrieb
              Gerd Petermann:<br>
            </div>
            <blockquote
cite="mid:HE1PR08MB0764CEF5F205A33DADE4FD919E3C0@HE1PR08MB0764.eurprd08.prod.outlook.com"
              type="cite">
              <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
                <p>Hi all,</p>
                <p><br>
                </p>
                <p>I got no feedback on the <span>do_not_split_0x4a_polygon.patch
                  </span>which I provided to fix the problems reported
                  by</p>
                <p>Thomas and Andrzej, see <br>
                </p>
                <p><a moz-do-not-send="true" id="LPlnk834516"
href="http://gis.19327.n5.nabble.com/How-do-I-transform-the-name-of-all-Ways-tp5875326p5875519.html"
                    class="OWAAutoLink">http://gis.19327.n5.nabble.com/How-do-I-transform-the-name-of-all-Ways-tp5875326p5875519.html</a></p>
                <p><br>
                </p>
                <p>I checked older versions of the source and</p>
                <p>found out that older versions of the code did contain
                  a special treatment for the 0x4a polygons, I removed
                  those</p>
                <p>in the overview2 branch and I don't exactly remember
                  why, so I've reverted that part of the change.</p>
                <p><br>
                </p>
                <p>I have the feeling that the code should be changed
                  somewere else, the tests in
                  <span>PolygonSubdivSizeSplitterFilter.java</span></p>
                <p>were introduced by WanMil long before we changed the
                  split algo in MapSplitter.
                  <br>
                </p>
                <p>Both sources use diverse hard coded limits, and I
                  have no idea why these are not relevant for 0x4a
                  polygons.</p>
                <p><br>
                </p>
                <p>I assume that there is a maximum tile size (at least
                  we have it in splitter) so maybe mkgmap should stop
                  with an error</p>
                <p>message when one tries to create a map with larger
                  tiles?</p>
                <p><br>
                </p>
                <p>Gerd<br>
                </p>
                <p><br>
                </p>
                <p><br>
                </p>
              </div>
              <br>
              <fieldset class="mimeAttachmentHeader"></fieldset>
              <br>
              <pre wrap="">_______________________________________________
mkgmap-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
            </blockquote>
            <br>
            <br>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre wrap="">_______________________________________________
mkgmap-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
          </blockquote>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mkgmap-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a class="moz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>