NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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.



asked 30 Nov '18, 06:01

AlaskaDave's gravatar image

accept rate: 16%

edited 30 Nov '18, 06:02

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).
Technical details (and the hard way of deletion): The tiles are saved in ~/.cache/JOSM/tiles. For me exactly in the files and TMS_BLOCK_v2.key (stored with the key "Mapnik" if I see correctly). Deletion of the whole directory or just both files results in JOSM downloading the tiles when opening the download dialog.

Tested with version 14460 on Linux. For cache paths of other operating systems see JOSM help.

permanent link

answered 30 Nov '18, 06:55

aseerel4c26's gravatar image

aseerel4c26 ♦
accept rate: 18%

edited 01 Dec '18, 10:33


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.


(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, which is just a nearby tile url with /dirty appended. Doing that for several zoom levels has things looking a bit better, but there are still some zooms that aren't updated.

(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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 30 Nov '18, 06:01

question was seen: 3,171 times

last updated: 02 Dec '18, 10:18

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum