qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.29k stars 2.96k forks source link

Error when zooming to xyz tile layer at zoom level 23 #48051

Open MarcusGraetsch opened 2 years ago

MarcusGraetsch commented 2 years ago

What is the bug or the crash?

We are using XYZ Tiles in PNG Format and zoom levels 10 to 23.

When we zoom in down to 23, we get an error when QGIS should display level 23, the error message is pasted in below.

As you see the algorithm tries to pick an image named: "23/0/0.png". 23 is the folder name for zoom level. In zoom levels 10 to 22 the following zeros always contain higher numbers (according to x y poitions) but here the automatically generated name/path seems not to work.

{ "Bytes Received": 258, "Bytes Total": 258, "Cache (control)": "Load from cache if available, otherwise load from network", "Cache (save)": "Can store result in cache", "Headers": { "Accept": "*/*", "User-Agent": "Mozilla/5.0 QGIS/32204" }, "ID": "src/providers/wms/qgswmsprovider.cpp:4217 (QgsWmsTiledImageDownloadHandler)", "Initiator": "QgsWmsTiledImageDownloadHandler", "Operation": "GET", "Replies": 1, "Reply": { "Cache (result)": "Read from network", "Error": "Error transferring URL_DOMAIN_NAME/path/20220311_Gesamtareal/23/0/0.png - server replied: Not Found", "Error Code": "203", "Headers": { "Connection": "keep-alive", "Content-Length": "258", "Content-Type": "application/xml;charset=utf-8", "Date": "Thu, 31 Mar 2022 13:08:31 GMT", "Server": "nginx/1.21.5", "X-Frontend": "fes300335" }, "Status": "404" }, "Thread": "0x000060000140a970", "Total time (ms)": 61, "URL": "URL_DOMAIN_NAME/path/20220311_Gesamtareal/23/0/0.png" },

Steps to reproduce the issue

get in touch and I send link to s3 storage where those tiles are located, that can be connected to qgis as a layer.

Versions

QGIS version 3.22.4-Białowieża QGIS code revision 3f4577ce6e Qt version 5.14.2 Python version 3.8.7 GDAL/OGR version 3.2.1 PROJ version 6.3.2 EPSG Registry database version v9.8.6 (2020-01-22) GEOS version 3.9.1-CAPI-1.14.2 SQLite version 3.31.1 PostgreSQL client version 12.3 SpatiaLite version 4.3.0a QWT version 6.1.4 QScintilla2 version 2.11.4 OS version macOS 12.3

Active Python plugins quick_map_services 0.19.28 qtiles 1.7.1 processing 2.12.99 sagaprovider 2.12.99 grassprovider 2.12.99 db_manager 0.1.20 MetaSearch 0.3.5

Supported QGIS version

New profile

Additional context

Similar behaviour on a QGIS Server

michael-gollan commented 2 years ago

Dear qgis-Team, is there a chance that this bug is resolved within the next release? Or is there a workaround available?

Best Regards, Michael