<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 Lambertus,<br><br>attached is a patch that implements the new option:<br><font style="" face="Courier New">&nbsp;--num-tiles&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A target value that is used when no split-file is given.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Splitting is done so that the given number of tiles is<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; produced. The max-nodes value is ignored if this option is<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; given.<br><font style="" face="Calibri">A compiled b</font><font style="" face="Calibri">inary is here:<br></font></font><br><code><a href="http://files.mkgmap.org.uk/download/206/splitter.jar" target="_blank">http://files.mkgmap.org.uk/download/206/splitter.jar</a><br><br><font style="" face="Calibri">Please let me know if it works as expected.</font><br><br><font style="" face="Calibri">Gerd</font><br></code><div><hr id="stopSpelling">Date: Sun, 4 May 2014 22:20:20 +0200<br>From: osm@na1400.info<br>To: mkgmap-dev@lists.mkgmap.org.uk<br>Subject: Re: [mkgmap-dev] mkgmap ToDo list<br><br>
  
    
  
  
    Great, many thanks. I'm currently trying to create as large as
    (automatically) possible contour tiles and a lot of time is put in
    subsplitting a tile again and again until two subtiles appear. This
    new option would save much time.<br>
    <br>
    <div class="ecxmoz-cite-prefix">On 05/04/2014 10:13 PM, Gerd Petermann
      wrote:<br>
    </div>
    <blockquote cite="mid:DUB112-W30F1A40D0B0458F059632F9E4D0@phx.gbl">
      <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
      <div dir="ltr">Hi Lambertus,<br>
        <br>
        yes, I want to code that tomorrow. I prefer to make it "give me
        n tiles", but if that turns out to be <br>
        difficult I try the simple version. I can think of scenarios
        where it is not possible to create exactly<br>
        n tiles.<br>
        <br>
        Gerd<br>
        <br>
        <div>
          <hr id="ecxstopSpelling">Date: Sun, 4 May 2014 22:08:32 +0200<br>
          From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:osm@na1400.info">osm@na1400.info</a><br>
          To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
          Subject: Re: [mkgmap-dev] mkgmap ToDo list<br>
          <br>
          Is the 'just give me two tiles' option for splitter on the
          to-do list? I'd really appreciate such a function.<br>
          <br>
          <div class="ecxmoz-cite-prefix">On 05/04/2014 09:36 PM, Gerd
            Petermann wrote:<br>
          </div>
          <blockquote cite="mid:DUB112-W113C6DF654A9C606AA6BBA39E4D0@phx.gbl">
            <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}


--></style>
            <div dir="ltr">Hi Felix,<br>
              <br>
              &gt; would using the precomp-sea parameter for splitter
              improve results? It's not that tiles with loads of sea
              actually failed. <br>
              <br>
              good question. I've coded that parameter in splitter
              before we did some important changes in mkgmap.<br>
              I think it is needed when you use a polygon file in<br>
              combination with an imput file that doesn't cover the
              polygon. <br>
              If the polygon covers a costline with a lot of islands,
              but the input file doesn't contain the data,<br>
              splitter might create large tiles covering these "empty"
              areas. Later, in mkgmap, the empty<br>
              areas are filled with the precompiled-sea data, and that
              can cause too large files.<br>
              <br>
              BTW: The quick hack turned out to be useless. It worked
              better in some areas and worse in others.<br>
              I'll look again at this later next week.<br>
              <br>
              Gerd<br>
              <br>
              <br>
              <br>
              <div>
                <hr id="ecxstopSpelling">Date: Sun, 4 May 2014 21:21:59
                +0200<br>
                From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><br>
                To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
                Subject: Re: [mkgmap-dev] mkgmap ToDo list<br>
                <br>
                No - I use splitter like this - with maxnodes depending
                on area - I usually just reduced it after failures to
                compile a tile.:<br>
                java -Xms4000m -Xmx10400m -jar
                c:\openmtbmap\splitter.jar --max-nodes=%maxnodes%
                --max-threads=8 --output=pbf --keep-complete
                --max-areas=1524 --geonames-file=cities5000
                --description=%country% --mapid=%FID%0000
                c:\OpenMTBMap\osmpbf_geofabrik\%country%-latest.osm.pbf<br>
                would using the precomp-sea parameter for splitter
                improve results? It's not that tiles with loads of sea
                actually failed. <br>
                <br>
                <div class="ecxmoz-cite-prefix">On 03.05.2014 09:00,
                  Gerd Petermann wrote:<br>
                </div>
                <blockquote cite="mid:DUB112-W949FD56AE92573EC9696969E420@phx.gbl">
                  <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}


--></style>
                  <div dir="ltr">Hi all,<br>
                    <br>
                    I've coded a quick hack which seems to improve the
                    ratios.<br>
                    On the other hand, I don't see these large
                    differences between<br>
                    smallest and largest img file. <br>
                    What part of the world should I try?<br>
                    Do you use the precomp-sea parameter in splitter?<br>
                    <br>
                    Gerd<br>
                    <br>
                    <div>
                      <hr id="ecxstopSpelling">Date: Wed, 30 Apr 2014
                      14:59:32 +0200<br>
                      From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><br>
                      To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
                      Subject: Re: [mkgmap-dev] mkgmap ToDo list<br>
                      <br>
                      if that doesn't seriously (more than 30-40%) slow
                      down the splitter, I assume it would be much
                      better...<br>
                      <div class="ecxmoz-cite-prefix">On 30.04.2014
                        14:06, Gerd Petermann wrote:<br>
                      </div>
                      <blockquote cite="mid:DUB112-W402302662FD5B679DF5CAB9E410@phx.gbl">
                        <div dir="ltr">
                          <style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}


--></style>
                          <div dir="ltr">Hi,<br>
                            <br>
                            if I got that right the number of nodes is
                            not <br>
                            highly correlated to the img size, so the
                            max-nodes<br>
                            value&nbsp; is not a good estimate.<br>
                            <br>
                            I assume the reason is that nodes which
                            belong to<br>
                            roads produce a lot more bytes<br>
                            in the img file compared to nodes which are
                            parts<br>
                            of shapes or other non-routable ways, not
                            talking<br>
                            about nodes which are simply ignored by the
                            style.<br>
                            <br>
                            So, a possible solution in splitter could be
                            to parse <br>
                            the ways before reading the nodes and save
                            all nodeids<br>
                            which belong to ways with highway=*.<br>
                            If these nodes are refered by more than one
                            way with highway=*<br>
                            we assume that they will be routing nodes.<br>
                            These special nodes could be counted e.g. 10
                            times to <br>
                            give a better estimate.<br>
                            <br>
                            Gerd<br>
                            <br>
                            <div>&gt; Date: Wed, 30 Apr 2014 13:36:19
                              +0200<br>
                              &gt; From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:osm@na1400.info">osm@na1400.info</a><br>
                              &gt; To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
                              &gt; Subject: Re: [mkgmap-dev] mkgmap ToDo
                              list<br>
                              &gt; <br>
                              &gt; Multithreading the tile rendering for
                              a single map is indeed a bit <br>
                              &gt; difficult and I gave it up because
                              you need to keep track which image <br>
                              &gt; id's are already in use. Since I
                              provide multiple maps the work-around <br>
                              &gt; is running a few scripts parallel,
                              which is also a crude form of <br>
                              &gt; multithreading.<br>
                              &gt; <br>
                              &gt; The script language is PHP and it
                              doesn't run on Windows without some <br>
                              &gt; changes ('/' vs '\' in paths, 'rm
                              -rf', that sort of stuff). Never tried it.<br>
                              &gt; <br>
                              &gt; To get a better optimum in file size,
                              using the process I described <br>
                              &gt; earlier, you could start off with a
                              huge --max-nodes setting and then <br>
                              &gt; 'search' for the highest --max-nodes
                              that works for each specific area.<br>
                              &gt; <br>
                              &gt; On 30/04/2014 11:49, Felix Hartmann
                              wrote:<br>
                              &gt; &gt; I would love if there was a
                              possibility that you pass the used
                              max-nodes<br>
                              &gt; &gt; value to mkgmap.<br>
                              &gt; &gt; When mkgmap is compiling the
                              maps, then after the .img is created it<br>
                              &gt; &gt; should check<br>
                              &gt; &gt; a) did it crash due to too many
                              max-nodes<br>
                              &gt; &gt; b) for me not important - but
                              for others with very old GPS, etrex 10,<br>
                              &gt; &gt; ---&gt; is tile bigger than X
                              (usually 8) MB.<br>
                              &gt; &gt;<br>
                              &gt; &gt; if a) or b) true, then pass the
                              file back to splitter and split with 60%<br>
                              &gt; &gt; of maxnodes - and compile the
                              resulting .img files again. Should it fail<br>
                              &gt; &gt; again, use 40%, again 25%...
                              Sometimes there are awful tiles, that need<br>
                              &gt; &gt; supersmall max-nodes till they
                              compile, however lately (last 1-2 years)<br>
                              &gt; &gt; I never encountered them
                              anymore. I think that happened rather due
                              to a<br>
                              &gt; &gt; but in splitter/mgkmap that is
                              fixed now.<br>
                              &gt; &gt;<br>
                              &gt; &gt; okay, you could also do this
                              with a script, but it gets rather<br>
                              &gt; &gt; complicated to multithread it
                              (you need to wait till mgkmap finished<br>
                              &gt; &gt; compiling all .img files - and
                              run mkgmap first without address index to<br>
                              &gt; &gt; save time) and do some clever
                              routines on making sure that the map id<br>
                              &gt; &gt; (e.g. 6340????.img) stay
                              correct. Even more complicated to have<br>
                              &gt; &gt; consequent map id...<br>
                              &gt; &gt;<br>
                              &gt; &gt; For europe with a fixed max-node
                              I get tiles from 1.9MB up to 18MB.<br>
                              &gt; &gt; That's factor 9 - so it's
                              huge...<br>
                              &gt; &gt; If I could narrows that down
                              easily to 8-18MB - without getting tiles<br>
                              &gt; &gt; crashing due to too high
                              max-nodes values, that would be sweet.<br>
                              &gt; &gt;<br>
                              &gt; &gt;<br>
                              &gt; &gt;<br>
                              &gt; &gt; As for the scripts - would they
                              run on windows too? - What programming<br>
                              &gt; &gt; language are they in?<br>
                              &gt; &gt;<br>
                              &gt; &gt;<br>
                              &gt; &gt; On 29.04.2014 21:39, <a class="ecxmoz-txt-link-abbreviated" href="mailto:osm@na1400.info">osm@na1400.info</a>
                              wrote:<br>
                              &gt; &gt;&gt; Oh, and ofcourse anyone
                              interested can get my scripts, send an
                              email.<br>
                              &gt; &gt;&gt; They'll be on Github someday
                              anyway.<br>
                              &gt; &gt;&gt;<br>
                              &gt; &gt;&gt;<br>
                              &gt; &gt;&gt; On 2014-04-29 20:37, Gerd
                              Petermann wrote:<br>
                              &gt; &gt;&gt;&gt; Hi Lambertus,<br>
                              &gt; &gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt; okay, if I got that
                              right you finally get *.img files with a
                              size<br>
                              &gt; &gt;&gt;&gt; near (but below) 8MB, so
                              maybe Henning can use that script, too.<br>
                              &gt; &gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt; If you do that for e.g.
                              Germany, how small is tpically the
                              smallest<br>
                              &gt; &gt;&gt;&gt; *.img file ?<br>
                              &gt; &gt;&gt;&gt; Is it probably near 4
                              MB?<br>
                              &gt; &gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt; Gerd<br>
                              &gt; &gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
                              &gt; &gt;&gt;&gt;&gt; Date: Tue, 29 Apr
                              2014 20:30:27 +0200<br>
                              &gt; &gt;&gt;&gt;&gt; From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:osm@na1400.info">osm@na1400.info</a><br>
                              &gt; &gt;&gt;&gt;&gt; Subject: Re:
                              [mkgmap-dev] mkgmap ToDo list<br>
                              &gt; &gt;&gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; These are the direct
                              results from Splitter. The format is o5m,
                              both<br>
                              &gt; &gt;&gt;&gt;&gt; input as output.
                              Splitter version is: r321.<br>
                              &gt; &gt;&gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; For this test I
                              split the original source with
                              --max-nodes=8000000.<br>
                              &gt; &gt;&gt;&gt; Then<br>
                              &gt; &gt;&gt;&gt;&gt; I render the initial
                              tiles, when the result is larger than 8MB
                              it's<br>
                              &gt; &gt;&gt;&gt;&gt; subsplit again with
                              --max-nodes=(8000000-(attempt*100000)).
                              The<br>
                              &gt; &gt;&gt;&gt; initial<br>
                              &gt; &gt;&gt;&gt;&gt; source files are
                              ~70MB (o5m) and after several subsplits
                              the two<br>
                              &gt; &gt;&gt;&gt; *.img<br>
                              &gt; &gt;&gt;&gt;&gt; are &lt; 8MB. During
                              this process --max-nodes has been reduced
                              to e.g.<br>
                              &gt; &gt;&gt;&gt;&gt; 7500000 and the
                              source file is split up in two o5m files
                              of about<br>
                              &gt; &gt;&gt;&gt; 37MB.<br>
                              &gt; &gt;&gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; I can upload an
                              example source file and it's two subsplit
                              siblings<br>
                              &gt; &gt;&gt;&gt; if<br>
                              &gt; &gt;&gt;&gt;&gt; you want.<br>
                              &gt; &gt;&gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; On 2014-04-29 19:38,
                              GerdP wrote:<br>
                              &gt; &gt;&gt;&gt;&gt; &gt; Hi Lambertus,<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt; that's
                              interesting. Are these the img file sizes
                              or the osm file<br>
                              &gt; &gt;&gt;&gt; sizes?<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt; Gerd<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt; Lambertus wrote<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;
                              Unfortunately I cannot confirm that. Below
                              is a bit of logging<br>
                              &gt; &gt;&gt;&gt; from my<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; script:<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; Original:
                              97000020 (70551453), New: 0 (35684445),
                              New: 1<br>
                              &gt; &gt;&gt;&gt; (36852845)<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; Original:
                              97000001 (74621042), New: 0 (37522992),
                              New: 1<br>
                              &gt; &gt;&gt;&gt; (37222739)<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; Original:
                              97000002 (73391358), New: 0 (37679505),
                              New: 1<br>
                              &gt; &gt;&gt;&gt; (38098627)<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; Original:
                              97000003 (77862567), New: 0 (39075311),
                              New: 1<br>
                              &gt; &gt;&gt;&gt; (39261197)<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; The
                              original files above contain contour data,
                              the filesize is<br>
                              &gt; &gt;&gt;&gt; between<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; brackets.
                              As you can see both resulting file are
                              approximately<br>
                              &gt; &gt;&gt;&gt; the<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; same<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; size.<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; On
                              2014-04-29 15:39, Gerd Petermann wrote:<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; Hi
                              Lambertus,<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; and I
                              guess that even after this optimization
                              you will<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; see a
                              factor 3 or higher between the largest
                              tile and the<br>
                              &gt; &gt;&gt;&gt; smallest.<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; Can you
                              confirm that?<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; Gerd<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              Date: Tue, 29 Apr 2014 15:32:38 +0200<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              From:<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; osm@<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; To:<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@.org">mkgmap-dev@.org</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              Subject: Re: [mkgmap-dev] mkgmap ToDo list<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              Num-tiles=x would indeed be better for
                              this specific need.<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; It
                              is my experience that it regularly takes
                              multiple calls to<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;
                              Splitter<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; to
                              get 2+ sub-tiles when you reduce the
                              max-nodes by 100k for<br>
                              &gt; &gt;&gt;&gt; each<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              sub-split attempt. This is what I
                              currently do to get an<br>
                              &gt; &gt;&gt;&gt; optimum in<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              tile-size vs total number of tiles.<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; On
                              29/04/2014 15:09, Gerd Petermann wrote:<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; Hi Lambertus,<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; that sounds like a possible change in
                              splitter:<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; Instead of specifying max-nodes you
                              may specify --num-tiles=x<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; and splitter will try to find a split
                              that produces excactly<br>
                              &gt; &gt;&gt;&gt; x<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; tiles<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; which are not too narrow and have a
                              node number which is not<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; too far from the average (but still
                              aligned to a multiple of<br>
                              &gt; &gt;&gt;&gt; map<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; units<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; as now).<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; So, for your script that means you
                              don't have to find the<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;
                              max-nodes<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; value.<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; I'll think about this again...<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; Gerd<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; Date: Tue, 29 Apr 2014 14:59:36
                              +0200<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; From:<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; osm@<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; To:<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@.org">mkgmap-dev@.org</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; Subject: Re: [mkgmap-dev] mkgmap
                              ToDo list<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; While this possibly can be
                              solved in Splitter or Mkgmap, it<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; could
                              also<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; be solved by your build-script
                              when you add a maximum tile<br>
                              &gt; &gt;&gt;&gt; size<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; check<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; and re-split (with a lower
                              number of max-nodes) until you<br>
                              &gt; &gt;&gt;&gt; get<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; two or<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; more sub-tiles. Granted, this
                              adds complexity to the script<br>
                              &gt; &gt;&gt;&gt; but<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; it
                              works<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; well for me.<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; On 25/04/2014 21:54, Henning
                              Scholland wrote:<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt; Hi Gerd,<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt; I would like to have
                              img-tiles which have globally nearly<br>
                              &gt; &gt;&gt;&gt; the<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; same<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt; filesize, so that they use
                              the space of devices like<br>
                              &gt; &gt;&gt;&gt; eTrex 10.<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt; With my actual map I use
                              globally the same value for<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;
                              max-nodes. But the<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt; size of the img-tiles
                              differ more then factor 2. Eg. a<br>
                              &gt; &gt;&gt;&gt; tile in<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; Germany<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt; is between 2 and 5 mb where
                              a tile in China is about 10<br>
                              &gt; &gt;&gt;&gt; mb. If<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; I
                              remove<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt; details, this difference
                              will increase, because in<br>
                              &gt; &gt;&gt;&gt; Germany<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; more
                              objects<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt; will be removed from the
                              img-tile then in China.<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt; Henning<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt;
                              _______________________________________________<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt; mkgmap-dev mailing list<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@.org">mkgmap-dev@.org</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; &gt; <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt;
                              _______________________________________________<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; mkgmap-dev mailing list<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@.org">mkgmap-dev@.org</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; &gt; <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt;
                              _______________________________________________<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; mkgmap-dev mailing list<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@.org">mkgmap-dev@.org</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt; <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              _______________________________________________<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;
                              mkgmap-dev mailing list<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@.org">mkgmap-dev@.org</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;&gt; <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;
                              _______________________________________________<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;
                              mkgmap-dev mailing list<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@.org">mkgmap-dev@.org</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;&gt; <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt;
                              _______________________________________________<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; mkgmap-dev
                              mailing list<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@.org">mkgmap-dev@.org</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;&gt; <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt;&gt; &gt; --<br>
                              &gt; &gt;&gt;&gt;&gt; &gt; View this
                              message in context:<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;<br>
                              &gt; &gt;&gt;&gt; <a class="ecxmoz-txt-link-freetext" href="http://gis.19327.n5.nabble.com/mkgmap-ToDo-list-tp5803388p5804588.html" target="_blank">http://gis.19327.n5.nabble.com/mkgmap-ToDo-list-tp5803388p5804588.html</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt; Sent from the
                              Mkgmap Development mailing list archive at<br>
                              &gt; &gt;&gt;&gt; Nabble.com.<br>
                              &gt; &gt;&gt;&gt;&gt; &gt;
                              _______________________________________________<br>
                              &gt; &gt;&gt;&gt;&gt; &gt; mkgmap-dev
                              mailing list<br>
                              &gt; &gt;&gt;&gt;&gt; &gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
                              &gt; &gt;&gt;&gt;&gt; &gt; <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
                              &gt; &gt;&gt;&gt;&gt;
                              _______________________________________________<br>
                              &gt; &gt;&gt;&gt;&gt; mkgmap-dev mailing
                              list<br>
                              &gt; &gt;&gt;&gt;&gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
                              &gt; &gt;&gt;&gt;&gt; <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
                              &gt; &gt;&gt;&gt;<br>
                              &gt; &gt;&gt;&gt;
                              _______________________________________________<br>
                              &gt; &gt;&gt;&gt; mkgmap-dev mailing list<br>
                              &gt; &gt;&gt;&gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
                              &gt; &gt;&gt;&gt; <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
                              &gt; &gt;&gt;
                              _______________________________________________<br>
                              &gt; &gt;&gt; mkgmap-dev mailing list<br>
                              &gt; &gt;&gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
                              &gt; &gt;&gt; <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
                              &gt; &gt;<br>
                              &gt; <br>
                              &gt;
                              _______________________________________________<br>
                              &gt; mkgmap-dev mailing list<br>
                              &gt; <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
                              &gt; <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
                            </div>
                          </div>
                        </div>
                        <br>
                        <fieldset class="ecxmimeAttachmentHeader"></fieldset>
                        <br>
                        <pre>_______________________________________________
mkgmap-dev mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
                      </blockquote>
                      <br>
                      <pre class="ecxmoz-signature">-- 
keep on biking and discovering new trails

Felix
openmtbmap.org &amp; <a class="ecxmoz-txt-link-abbreviated" href="http://www.velomap.org" target="_blank">www.velomap.org</a></pre>
                      <br>
                      _______________________________________________
                      mkgmap-dev mailing list <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
                      <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div>
                  </div>
                  <br>
                  <fieldset class="ecxmimeAttachmentHeader"></fieldset>
                  <br>
                  <pre>_______________________________________________
mkgmap-dev mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
                </blockquote>
                <br>
                <pre class="ecxmoz-signature">-- 
keep on biking and discovering new trails

Felix
openmtbmap.org &amp; <a class="ecxmoz-txt-link-abbreviated" href="http://www.velomap.org" target="_blank">www.velomap.org</a></pre>
                <br>
                _______________________________________________
                mkgmap-dev mailing list <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
                <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div>
            </div>
            <br>
            <fieldset class="ecxmimeAttachmentHeader"></fieldset>
            <br>
            <pre>_______________________________________________
mkgmap-dev mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
          </blockquote>
          <br>
          <br>
          _______________________________________________
          mkgmap-dev mailing list
          <a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
          <a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div>
      </div>
      <br>
      <fieldset class="ecxmimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
mkgmap-dev mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a class="ecxmoz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
    </blockquote>
    <br>
  

<br>_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</div>                                               </div></body>
</html>