viking icon indicating copy to clipboard operation
viking copied to clipboard

Mapnik errors around zoom levels 21 and 22... naturally

Open jidanni opened this issue 1 year ago • 4 comments

Panning to unexplored areas: the tiles seem to load normally, but why all the errors, particularly around zoom levels 21 and 22?

If I didn't look at the log messages button there on the bottom bar I wouldn't know something was wrong.

Warning Download error: /home/jidanni/.cache/viking/OSM-Mapnik/21/1752674/903328.png Warning curl_download_uri: http response: 400 for uri http://tile.openstreetmap.org/21/1752674/903328.png Warning Download error: /home/jidanni/.cache/viking/OSM-Mapnik/21/1752674/903327.png Warning curl_download_uri: http response: 400 for uri http://tile.openstreetmap.org/21/1752674/903327.png Warning Download error: /home/jidanni/.cache/viking/OSM-Mapnik/21/1752674/903326.png Warning curl_download_uri: http response: 400 for uri http://tile.openstreetmap.org/21/1752674/903326.png Warning Download error: /home/jidanni/.cache/viking/OSM-Mapnik/21/1752673/903328.png Warning curl_download_uri: http response: 400 for uri http://tile.openstreetmap.org/21/1752673/903328.png

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400 seems to point the finger at Viking.

jidanni avatar Oct 02 '24 09:10 jidanni

Wait. What makes Viking think that there are more than 19 zoom levels for Mapnik? At least that's how it is on OSM.ORG. https://www.openstreetmap.org/#map=19/24.181931/120.866100 https://gis.stackexchange.com/questions/174375/loading-tile-zoom-level-20

jidanni avatar Oct 02 '24 09:10 jidanni

The file osm.c contains the OSM Mapnik map definition with a hardcoded limit of zoom-max set to 19.

When panning around it should not (and it does not on my system) make requests for tiles at zoom levels of 20 and 21.

Unfortunately, it appears if you use F5 to refresh - then that bypasses the zoom limit check - and so makes unnecessary/unwanted requests :(

rnorris avatar Oct 03 '24 23:10 rnorris

Also once one somehow gets the half-baked parking lot you see above, one is stuck for life with it. As there is no mechanism to just throw away the tiles one sees, without throwing away more.

Edit: easy workaround: I just went into ~/.cache/Viking and manually deleted the offending files of anything that I wished would refresh.

jidanni avatar Oct 05 '24 13:10 jidanni

But it seems once a tile is in, the worst thing that could happen is it gets edited upstream, then we get a permanent mix of old and new tiles. Screenshot 2024-10-09 10 17 29 Oh well, looks like I'll just have to

rm -r .cache/viking/OSM-Mapnik

again.

jidanni avatar Oct 09 '24 02:10 jidanni