Replies: 3 comments 7 replies
-
@bbilger I don't know as much as @msbarry about Planetiler, but my understanding is that it is possible for two runs to produce different results in two scenarios - one is ok, and one is not.
|
Beta Was this translation helpful? Give feedback.
-
Okay, thank you both for the explanation and the ticket. That explains why the rank differs, and here and there some features are chosen instead of others. In order to avoid any confusion, let me rephrase "even a few geometries might differ slightly" to "even a few locations might differ slightly".
But from your explanation I would assume now that in OSM there are duplicate entries for those POIs and housenumbers, and because of non-deterministic sorting, the single one that gets picked might differ. |
Beta Was this translation helpful? Give feedback.
-
One example from Slovakia, which might not be ordering issue:
When generating Slovakia twice and then running compare on those two results:
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I am currently working on #167
And for that I implemented a tool to compare the tiles of two mbtiles https://gist.github.com/bbilger/cbab2aeb9b66ababaffc55ad5ffbef45 (it's still WIP thus it's a gist, it will be part of the PR, then)
For quite some time I thought that I had a bug in my de-duping mechanism but it turns out that the result produced by planetiler is not stable.
The produced mbtiles files doesn't contain anything time dependent as far as I can see, so the md5sum should match, but maybe I forget something and something in a sqlite file may be different despite equal content being written identically.
With my tool I can clearly see that the rank attribute changes when I compare monaco1.mbtiles with monaco2.mbtiles - delete line 140 to see that https://gist.github.com/bbilger/cbab2aeb9b66ababaffc55ad5ffbef45/revisions#diff-d887a55f182c151b60946bb3c4e61e449e5deaf3fb08110045277463a227f4e1R140
So that's the first question: is this normal that the rank attribute may differ?
If I go bigger and do the same with Australia, then it's not only the rank attribute that differs but even more things - this doesn't happen on many tiles but just a few:
So that's the second question: are slight geometry and feature differences expected as well?
You can find the result of comparing two australia.mbtiles here: https://gist.github.com/bbilger/1dfd0584e95d0d2566e72f73846d9d95
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions