<div dir="ltr">No I did not log them - I only used a for loop to get the number of tiles. Brazil, Australia-Ocieania, Asia those differences are really so big that it is hard to believe mkgmap cannot do better. Options otherwise identical. Maxnodes sometimes a bit less than 140... If this is important I can write down for which countries they differed - but I think this happens at any maxnode value.<div><br></div><div>If you would like me to run all of them again and do a splitter.log I can. Will take 12 hours or so however. I am pretty sure all those splits which are vastly different in size have an error message. But I did not check that. Africa and Italy are quite stunning too. Why is it soo much less tiles not using a boundary file (I downloaded the extracts at the same time as the bound files - so they should be identical if geofabrik has no error).</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 23 Jun 2021 at 15:58, Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com">gpetermann_muenchen@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Felix,<br>
<br>
I can reproduce the surprising results for Brazil with --max-nodes=1400000. This really looks like an error in splitter because splitter should simply do the same after reporting<br>
"Warning: shape is too complex, using rectangle (-35.5078125,-74.091796875) to (5.537109375,-27.6416015625) with 213.392.248 nodes instead"<br>
<br>
But the search for a good split shows slightly different numbers and the log without polygon file says "Solution is not nice. Can't find a better solution ..."<br>
I suggest to look for this message.<br>
<br>
I'll try to find out why exactly splitter behaves like that.<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>><br>
Gesendet: Mittwoch, 23. Juni 2021 13:49<br>
An: Development list for mkgmap<br>
Betreff: Re: [mkgmap-dev] mkgmap splitter - Liechtenstein - horrible split if --polygon-file option used.<br>
<br>
Hi Felix,<br>
<br>
quite interesting. Do you have the log files from splitter and /or the densities-out.txt files? If yes, please share them.<br>
Did you always use the same splitter options?<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>><br>
Gesendet: Mittwoch, 23. Juni 2021 13:12<br>
An: Development list for mkgmap<br>
Betreff: Re: [mkgmap-dev] mkgmap splitter - Liechtenstein - horrible split if --polygon-file option used.<br>
<br>
Okay - well I ran splitter against all geofrabrik extracts that I am having on my server (so nearly all - notably excluding DACH and Greater Britain extract) - and wrote a script comparing the splits. Overall because of Asia continent map it is better to use polygon-file. Seeing those huge differences on Asia, australia-oceania, Italy, Africa, Japan and Brazil<br>
I do feel splitter should be doing a bit better. Especially Asia continent is hard to understand the huge huge difference.<br>
In general for tiny countries - do not use it. Do not use it for German Bundesländer. Do not use polygon-file for Italy. But do use it on Australia-Oceania, Africa, Japan, Brazil, and Asia continent map.<br>
<br>
Now I wonder - will this change in the future? So meaning I have to run this assessment once a year? Usually the additional tiles are mostly tiny - there is no reason for having them. If the split results in the same amount of tiles no matter using --polygon-file or not - it is not listed (overall 176 extracts). I put those countries with huge difference in bold.<br>
26 splits are better not using --polygon-file. 30 splits are better using --polygon-file. 906 tiles less for Asia continent shows that splitting Asia without --polygon-file is a right mess. On the other hand for some tiny countries like Lichtenstein or German Bundesländer, and Africa using a --polygon-file from geofabrik created a way too many useless tiles.<br>
cnt1 = using --polygon-file, cnt0=not using polygon-file for splitting.<br>
<br>
"for montenegro do not use polygon-file - cnt1 = 2 cnt0 = 7"<br>
"for france use polygon-file - cnt1 = 336 cnt0 = 332"<br>
"for netherlands do not use polygon-file - cnt1 = 91 cnt0 = 92"<br>
"for germany use polygon-file - cnt1 = 259 cnt0 = 258"<br>
"for liechtenstein do not use polygon-file - cnt1 = 1 cnt0 = 6"<br>
"for monaco do not use polygon-file - cnt1 = 1 cnt0 = 2"<br>
"for slovenia do not use polygon-file - cnt1 = 27 cnt0 = 28"<br>
"for ukraine use polygon-file - cnt1 = 62 cnt0 = 61"<br>
"for norway use polygon-file - cnt1 = 128 cnt0 = 115"<br>
"for switzerland do not use polygon-file - cnt1 = 29 cnt0 = 30"<br>
"for poland use polygon-file - cnt1 = 133 cnt0 = 127"<br>
"for sweden use polygon-file - cnt1 = 60 cnt0 = 54"<br>
"for finland do not use polygon-file - cnt1 = 66 cnt0 = 85"<br>
"for spain use polygon-file - cnt1 = 91 cnt0 = 89"<br>
"for italy do not use polygon-file - cnt1 = 155 cnt0 = 201"<br>
"for denmark use polygon-file - cnt1 = 33 cnt0 = 32"<br>
"for andorra do not use polygon-file - cnt1 = 1 cnt0 = 4"<br>
"for estonia use polygon-file - cnt1 = 9 cnt0 = 8"<br>
"for saarland do not use polygon-file - cnt1 = 4 cnt0 = 16"<br>
"for hamburg do not use polygon-file - cnt1 = 3 cnt0 = 12"<br>
"for hessen do not use polygon-file - cnt1 = 17 cnt0 = 18"<br>
"for niedersachsen do not use polygon-file - cnt1 = 26 cnt0 = 27"<br>
"for baden-wuerttemberg use polygon-file - cnt1 = 38 cnt0 = 36"<br>
"for nordrhein-westfalen do not use polygon-file - cnt1 = 56 cnt0 = 57"<br>
"for bayern do not use polygon-file - cnt1 = 47 cnt0 = 48"<br>
"for berlin do not use polygon-file - cnt1 = 5 cnt0 = 13"<br>
"for australia-oceania use polygon-file - cnt1 = 210 cnt0 = 110"<br>
"for south-america do not use polygon-file - cnt1 = 337 cnt0 = 339"<br>
"for africa do not use polygon-file - cnt1 = 673 cnt0 = 742"<br>
"for russia use polygon-file - cnt1 = 431 cnt0 = 409"<br>
"for central-america use polygon-file - cnt1 = 61 cnt0 = 58"<br>
"for morocco do not use polygon-file - cnt1 = 19 cnt0 = 32"<br>
"for azerbaijan do not use polygon-file - cnt1 = 3 cnt0 = 4"<br>
"for malaysia-singapore-brunei do not use polygon-file - cnt1 = 16 cnt0 = 17"<br>
"for china use polygon-file - cnt1 = 106 cnt0 = 100"<br>
"for india do not use polygon-file - cnt1 = 109 cnt0 = 110"<br>
"for indonesia do not use polygon-file - cnt1 = 193 cnt0 = 198"<br>
"for japan use polygon-file - cnt1 = 196 cnt0 = 154"<br>
"for kazakhstan use polygon-file - cnt1 = 14 cnt0 = 13"<br>
"for philippines use polygon-file - cnt1 = 53 cnt0 = 52"<br>
"for afghanistan do not use polygon-file - cnt1 = 12 cnt0 = 21"<br>
"for myanmar use polygon-file - cnt1 = 18 cnt0 = 17"<br>
"for australia use polygon-file - cnt1 = 68 cnt0 = 67"<br>
"for new-zealand do not use polygon-file - cnt1 = 27 cnt0 = 28"<br>
"for argentina use polygon-file - cnt1 = 33 cnt0 = 27"<br>
"for brazil use polygon-file - cnt1 = 265 cnt0 = 177"<br>
"for peru use polygon-file - cnt1 = 22 cnt0 = 21"<br>
"for canada use polygon-file - cnt1 = 299 cnt0 = 275"<br>
"for us-midwest use polygon-file - cnt1 = 155 cnt0 = 154"<br>
"for us-pacific use polygon-file - cnt1 = 21 cnt0 = 18"<br>
"for us-south use polygon-file - cnt1 = 265 cnt0 = 262"<br>
"for us-west use polygon-file - cnt1 = 240 cnt0 = 226"<br>
"for greenland use polygon-file - cnt1 = 4 cnt0 = 2"<br>
"for mexico use polygon-file - cnt1 = 44 cnt0 = 43"<br>
"for reunion do not use polygon-file - cnt1 = 3 cnt0 = 5"<br>
"for asia use polygon-file - cnt1 = 2489 cnt0 = 1505"<br>
<br>
On Sun, 20 Jun 2021 at 19:12, Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a><mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>>> wrote:<br>
Hi Felix,<br>
<br>
it tries to reduce the area that is outside the polygon. I think for most countries there is no good reason to use a polygon.<br>
Candidates are those which cross 180° and maybe those which have lots of unrelateed coastline inside the bounding box.<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a><mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>>><br>
Gesendet: Sonntag, 20. Juni 2021 15:12<br>
An: Development list for mkgmap<br>
Betreff: Re: [mkgmap-dev] mkgmap splitter - Liechtenstein - horrible split if --polygon-file option used.<br>
<br>
But why is it splitting up into so many parts?<br>
So that means you kinda have to check for every country individually if using poly or nor gives the split with less tiles? I would just prefer the split using less tiles so best I write a script to test that for every single country?<br>
<br>
On Sun, 20 Jun 2021, 15:27 Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a><mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>><mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a><mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>>>> wrote:<br>
Hi Felix,<br>
<br>
the polygon-file tells splitter that you don't want the rectangular bounds given in the *.osm file.<br>
This means you don't want the areas outside of the polygon. If you are happy with the result without polygon file just don't use it<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>>>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a><mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>><mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a><mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>>>><br>
Gesendet: Sonntag, 20. Juni 2021 10:17<br>
An: Development list for mkgmap<br>
Betreff: Re: [mkgmap-dev] mkgmap splitter - Liechtenstein - horrible split if --polygon-file option used.<br>
<br>
I think this applies to all "countries" / areas that are so small that they do not need a split or would split into very few areas. Another example is Monaco (2 tiles instead of 1 tile). For "countries" that are 10 tiles or more anyhow - I did not find this problem.<br>
<br>
On Sun, 20 Jun 2021 at 11:08, Felix Hartmann <<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a><mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>><mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a><mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>>><mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a><mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>><mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a><mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>>>>> wrote:<br>
After last week looking at australia-oceania which was not splitted well without polygon-file - I now noticed that several small countries are split into way too many small tiles IF using .poly boundary file.<br>
<br>
I guess there is some bug? This tile should not be split at all - as the node count fits into 1 tile!<br>
<br>
<br>
Attached the splitter.log both with and without .poly file.<br>
<br>
--<br>
Felix Hartman - Openmtbmap.org & VeloMap.org<br>
<br>
<br>
<br>
--<br>
Felix Hartman - Openmtbmap.org & VeloMap.org<br>
<br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>>><br>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>><br>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
<br>
<br>
--<br>
Felix Hartman - Openmtbmap.org & VeloMap.org<br>
<br>
_______________________________________________<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="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
_______________________________________________<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="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Felix Hartman - Openmtbmap.org & VeloMap.org<br></div><br></div></div></div></div></div></div>