Is there a simple method to clear the imagery cache in JOSM? When I go to download an area near where I'm mapping, boundaries of the Kodiak NWR I replaced two weeks ago still show unless I zoom in very close. Presumably, the data is stored somewhere and takes a while (a long while?) to update on JOSM's internal slippy map. Cheers, Dave asked 30 Nov '18, 06:01 AlaskaDave |
Go to JOSM's imagery preferences, go to the "Cache contents" tab, and use the "Clear" button in the relevant line. The tiles for the JOSM download dialog window can be deleted by using the "delete" button in the "Mapnik" line (needs restarting afterwards). Tested with version 14460 on Linux. For cache paths of other operating systems see JOSM help. answered 30 Nov '18, 06:55 aseerel4c26 ♦ 1
I cleared all imagery caches and restarted JOSM but that did not do it. By the way, the caches are named for the imagery source. Hence, there are Clear buttons for DigitalGlobe-Premium, DigitalGlobe-standard, USGS Topo, etc. It's the slippy map that displays the outdated information, not the display inside the editor window. I guess we need to find a way to clear that.
(30 Nov '18, 13:07)
AlaskaDave
@AlaskaDave, oh, I interpreted "Kodiak NWR" to be a imagery name, sorry. Have updated my answer. So, which imagery are you downloading? Or do you mean the imagery in the JOSM Download area selection dialog? This one is apparently independent from the "OpenStreetMap Carto (Standard)" background imagery layer. Whyever... I have updated my answer. Does it work for you?
(30 Nov '18, 21:10)
aseerel4c26 ♦
Let me explain. I added the Kodiak National Wildlife Refuge to OSM piece by piece (it's a huge refuge) over a period of two or three weeks. The original small piece still shows up at low zoom in the JOSM Download area window even though the refuge is now complete. I know it takes a while for the rendering on the slippy map to catch up with reality but two weeks seemed an awfully long time. I was looking for a way to speed that process up. I thought perhaps there was a way to force it by deleting any cached imagery. I deleted the Mapnik cache along with the other image caches and restarted during my first try at this. It had no effect. I might try deleting the images in the cache but this isn't a big deal. Maybe I'll just have to be patient. Dave (I'm also running the latest JOSM - v14460 on Windows 10)
(01 Dec '18, 01:49)
AlaskaDave
@AlaskaDave: hmm, well, is the Kodiak NWR shown in your updated version in your browser? If not then probably the rendering is just not yet updated. Note that lower zoom levels will take longer to update. For a better understanding you may want to start JOSM from command line, then you see JOSM logging network requests (tile downloads) in the command line window.
(01 Dec '18, 09:06)
aseerel4c26 ♦
No problem. I'll just wait. It took several weeks for the Download window to show a state park I added. Thanks for your help.
(01 Dec '18, 10:18)
AlaskaDave
At the moment, rendering at z13 and higher shouldn't be delayed except when the style has been refreshed. It seems here something got stuck. You can ask the server to generate a new tile, by visiting, for example, https://a.tile.openstreetmap.org/9/36/156.png/dirty which is just a nearby tile url with
(01 Dec '18, 13:35)
maxerickson
Thank you. I might try that in the future but I think I'll just wait it out. I've moved on to other projects now.
(02 Dec '18, 10:18)
AlaskaDave
showing 5 of 7
show 2 more comments
|