Inquiry Regarding Abnormal Tile Conversion When Setting MaxZoom to 16 #682
Replies: 5 comments 5 replies
-
Sounds like something I might have broken. I'm travelling for a couple of weeks, but can have a look in March if the issue is still around. |
Beta Was this translation helpful? Give feedback.
-
config-openmaptiles.json |
Beta Was this translation helpful? Give feedback.
-
Just checking the obvious, but can I check you're building with the |
Beta Was this translation helpful? Give feedback.
-
tl;dr: this is indeed a bug that I introduced. A workaround in the short term is to build with I can reproduce the issue on master and confirm it's not present in v2.4.0. It is quite broken in master - changing just the maxzoom/basezoom of the default config to 15 from 14 seems to break lower zooms (!). The non-technical explanation is that I did not understand The technical explanation is that I used a This means that when we add OutputObjects to the index (so that we might retrieve them when writing them out later), we'll overflow and end up transposing them thousands of kilometres away. I see a few possible paths forward:
I think I like option 3. @systemed do you see any problems with that? Separately, I notice that output_object.h only allocates 4 bits for minzoom, so it's not currently possible to express a minzoom of z16 or higher. I'm not familiar enough with how people use higher zooms - is that a problem that should also be fixed? |
Beta Was this translation helpful? Give feedback.
-
Hi @magicianlim, I've put together a patch that tries to fix this up. It's the disc-682-1 branch on my fork or PR #700 here. Can you give it a try and see if it resolves your issue? |
Beta Was this translation helpful? Give feedback.
-
I have a question regarding a project I'm currently developing, which utilizes tile zoom level 16. Previously, on a Mac Mini M1 using version 2.4, I configured the config.json file to set the maximum zoom to 16, allowing the creation of mbtiles files without any issues. However, on a newly purchased MacBook M3 with tilemaker version 3.0, tiles are only being correctly generated up to zoom level 15, and at 16, the tiles are not being generated properly. Why might this be happening?
When attempting to generate tiles, at zoom level 16, it results in 0 outputs. The converted tiles are significantly smaller in size than expected and appear to be missing most of the data. What should I try to resolve this issue?
Here are some metrics from the tile conversion process: collecting tiles: 326ms, filtering tiles: z0 (1, 0ms) z1 (1, 0ms) z2 (1, 0ms) z3 (1, 0ms) z4 (1, 0ms) z5 (1, 0ms) z6 (4, 0ms) z7 (8, 0ms) z8 (20, 0ms) z9 (59, 2ms) z10 (203, 9ms) z11 (719, 38ms) z12 (2612, 152ms) z13 (9651, 612ms) z14 (36803, 2458ms) z15 (142103, 9823ms) z16 (0, 13668ms).
ps...
Please continue testing. The issue persists at zoom level 15. The settings are the same as when it was set to zoom level 16.
Tile conversion works correctly up to zoom level 14.
Beta Was this translation helpful? Give feedback.
All reactions