Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smaller zoom levels "leaking" in at larger zoom levels #495

Open
LukasBommes opened this issue Nov 14, 2024 · 3 comments
Open

Smaller zoom levels "leaking" in at larger zoom levels #495

LukasBommes opened this issue Nov 14, 2024 · 3 comments

Comments

@LukasBommes
Copy link

LukasBommes commented Nov 14, 2024

I noted visual artefacts at in our PMTiles as shown in the screenshots attached. To me it looks like that lower resolved overviews are "leaking in" at closer zoom levels. I observed this for mutiple differen PMTiles in PMTiles viewer and also in Openlayers (as in this example).

If it helps, I can anonymize my PMTile and provide it for debugging.

zoomed_out
zoomed_in_1
zoomed_in_2

PMTiles were created from VRTs like this

gdal_translate in.vrt out.mbtiles -of MBTILES
gdaladdo -r bilinear out.mbtiles -minsize 256
pmtiles convert out.mbtiles out.pmtiles
@bdon
Copy link
Member

bdon commented Nov 14, 2024

have you experimented with generating a higher zoom level of mbtiles?

@LukasBommes
Copy link
Author

LukasBommes commented Nov 15, 2024

You mean higher than the "native" zoom level chosen by gdal_translate with default settings (BLOCKSIZE=256, TILE_FORMAT=PNG, ZLEVEL=6, ZOOM_LEVEL_STRATEGY=AUTO)?

I did try generating MBTiles with ZOOM_LEVEL_STRATEGY=UPPER but haven't analyzed the impact on the artefact yet. I can do so for debugging purposes. But adding an additional zoom level seems wasteful to me as it significantly increases size of the resulting PMTiles.

A (maybe) important detail to add: The artefact occurs at the tile grid boundary. This becomes evident when rendering the tile grid in OpenLayers as shown in this example. To me it looks like the renderer does not properly delete the lower-zoomlevel tile when rendering the higher zoom levels.

@bdon
Copy link
Member

bdon commented Nov 16, 2024

It would be helpful if you could share your file, but I suspect this is related to the generation of the tiles and outside the scope of the PMTiles format itself (this repository).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants