<div dir="ltr"><div dir="ltr">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</div><div dir="ltr">I do feel splitter should be doing a bit better. Especially Asia continent is hard to understand the huge huge difference.</div><div dir="ltr">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.</div><div dir="ltr"><br></div><div dir="ltr">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.</div><div dir="ltr">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><div>cnt1 = using --polygon-file, cnt0=not using polygon-file for splitting.</div><div><br></div><div><div>"for montenegro do not use polygon-file - cnt1 = 2 cnt0 = 7" </div><div>"for france use polygon-file - cnt1 = 336 cnt0 = 332" </div><div>"for netherlands do not use polygon-file - cnt1 = 91 cnt0 = 92" </div><div>"for germany use polygon-file - cnt1 = 259 cnt0 = 258" </div><div>"for liechtenstein do not use polygon-file - cnt1 = 1 cnt0 = 6" </div><div>"for monaco do not use polygon-file - cnt1 = 1 cnt0 = 2" </div><div>"for slovenia do not use polygon-file - cnt1 = 27 cnt0 = 28" </div><div>"for ukraine use polygon-file - cnt1 = 62 cnt0 = 61" </div><div>"for norway use polygon-file - cnt1 = 128 cnt0 = 115" </div><div>"for switzerland do not use polygon-file - cnt1 = 29 cnt0 = 30" </div><div>"for poland use polygon-file - cnt1 = 133 cnt0 = 127" </div><div>"for sweden use polygon-file - cnt1 = 60 cnt0 = 54" </div><div>"for finland do not use polygon-file - cnt1 = 66 cnt0 = 85" </div><div>"for spain use polygon-file - cnt1 = 91 cnt0 = 89" </div><div><b>"for italy do not use polygon-file - cnt1 = 155 cnt0 = 201" </b></div><div>"for denmark use polygon-file - cnt1 = 33 cnt0 = 32" </div><div>"for andorra do not use polygon-file - cnt1 = 1 cnt0 = 4" </div><div>"for estonia use polygon-file - cnt1 = 9 cnt0 = 8" </div><div>"for saarland do not use polygon-file - cnt1 = 4 cnt0 = 16" </div><div>"for hamburg do not use polygon-file - cnt1 = 3 cnt0 = 12" </div><div>"for hessen do not use polygon-file - cnt1 = 17 cnt0 = 18" </div><div>"for niedersachsen do not use polygon-file - cnt1 = 26 cnt0 = 27" </div><div>"for baden-wuerttemberg use polygon-file - cnt1 = 38 cnt0 = 36" </div><div>"for nordrhein-westfalen do not use polygon-file - cnt1 = 56 cnt0 = 57" </div><div>"for bayern do not use polygon-file - cnt1 = 47 cnt0 = 48" </div><div>"for berlin do not use polygon-file - cnt1 = 5 cnt0 = 13" </div><div><b>"for australia-oceania use polygon-file - cnt1 = 210 cnt0 = 110" </b></div><div>"for south-america do not use polygon-file - cnt1 = 337 cnt0 = 339" </div><div><b>"for africa do not use polygon-file - cnt1 = 673 cnt0 = 742" </b></div><div>"for russia use polygon-file - cnt1 = 431 cnt0 = 409" </div><div>"for central-america use polygon-file - cnt1 = 61 cnt0 = 58" </div><div>"for morocco do not use polygon-file - cnt1 = 19 cnt0 = 32" </div><div>"for azerbaijan do not use polygon-file - cnt1 = 3 cnt0 = 4" </div><div>"for malaysia-singapore-brunei do not use polygon-file - cnt1 = 16 cnt0 = 17" </div><div>"for china use polygon-file - cnt1 = 106 cnt0 = 100" </div><div>"for india do not use polygon-file - cnt1 = 109 cnt0 = 110" </div><div>"for indonesia do not use polygon-file - cnt1 = 193 cnt0 = 198" </div><div><b>"for japan use polygon-file - cnt1 = 196 cnt0 = 154</b>" </div><div>"for kazakhstan use polygon-file - cnt1 = 14 cnt0 = 13" </div><div>"for philippines use polygon-file - cnt1 = 53 cnt0 = 52" </div><div>"for afghanistan do not use polygon-file - cnt1 = 12 cnt0 = 21" </div><div>"for myanmar use polygon-file - cnt1 = 18 cnt0 = 17" </div><div>"for australia use polygon-file - cnt1 = 68 cnt0 = 67" </div><div>"for new-zealand do not use polygon-file - cnt1 = 27 cnt0 = 28" </div><div>"for argentina use polygon-file - cnt1 = 33 cnt0 = 27" </div><div><b>"for brazil use polygon-file - cnt1 = 265 cnt0 = 177" </b></div><div>"for peru use polygon-file - cnt1 = 22 cnt0 = 21" </div><div>"for canada use polygon-file - cnt1 = 299 cnt0 = 275" </div><div>"for us-midwest use polygon-file - cnt1 = 155 cnt0 = 154" </div><div>"for us-pacific use polygon-file - cnt1 = 21 cnt0 = 18" </div><div>"for us-south use polygon-file - cnt1 = 265 cnt0 = 262" </div><div>"for us-west use polygon-file - cnt1 = 240 cnt0 = 226" </div><div>"for greenland use polygon-file - cnt1 = 4 cnt0 = 2" </div><div>"for mexico use polygon-file - cnt1 = 44 cnt0 = 43" </div><div>"for reunion do not use polygon-file - cnt1 = 3 cnt0 = 5" </div><div><b>"for asia use polygon-file - cnt1 = 2489 cnt0 = 1505" </b></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 20 Jun 2021 at 19:12, 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>
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>> im Auftrag von Felix Hartmann <<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>>> 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>>> 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 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>>>> 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>><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>