Re: [josm-dev] JMapViewerTiles folder in my Temp folder

2012-08-30 Thread Holger Jeromin
Paul Hartmann schrieb am 28.08.2012 11:30:
> On 08/27/2012 03:04 PM, Bob Hawkins wrote:
>> I use Microsoft Windows on my PC. I discovered a folder this morning
>> in my Local SettingsTemp folder titled JMapViewerTiles_Bob in which
>> there were a further six folders: Bing Aerial Maps, ITO OSL, Mapnik,
>> OOC OS 1_25K, OpenStreetMap and OS OpenData StreetView. They
>> contained 25,000 files in total, over half of which were in Bing
>> Aerial Maps. Some files date from late 2010, the others from late
>> 2011. I joined OSM in May 2008 and have contributed edits to its
>> mapping since August 2008 using JOSM. I suspect the files relate to
>> WMS and Imagery Preferences in JOSM but do not understand if it is I
>> or an introduction into JOSM itself that has caused them to be
>> created since those dates. Is there no alternative now but to
>> regularly remove the files from the Temp folder?
> 
> The situation is not ideal, especially on Windows.
> We need to
>   * move TMS cache to %APPDATA%/JOSM/cache/tms

This one would be
C:\Users\xxx\AppData\Roaming\JOSM
so it is global to the user account on all used computers.

C:\Users\xxx\AppData\Local\JOSM
would be much better, since it keeps local to the computer.

-- 
greetings
Holger


___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] JMapViewerTiles folder in my Temp folder

2012-08-28 Thread Toby Murray
On Tue, Aug 28, 2012 at 4:57 AM, Pieren  wrote:
> On Mon, Aug 27, 2012 at 4:31 PM, Toby Murray  wrote:
>> You can clear the cache by right
>> clicking in the map and using the "Flush tile cache" option in the
>> context menu.
>
> If I might suggest an improvement, the command should be available in
> the layer context menu as well (I would even suggest to move the whole
> context menu from the map itself since it is very annoying as it
> appears by accident many times during edition but that's another
> story).

+1 at least for the flush cache option and probably most of the
others. The only sticking points are the tile specific options like
"show tile info" which seems to be married to the map.

Especially with the flush cache option, if you have more than one
imagery layer visible, I'm not sure which one it flushes. You would
kind of think whichever one is on top but there seems to be some
weirdness there... I think it is refusing to flush Bing imagery unless
it is the only imagery layer.

Toby

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] JMapViewerTiles folder in my Temp folder

2012-08-28 Thread Paul Hartmann

On 08/28/2012 11:37 AM, Vincent Privat wrote:

Should we also introduce a maximum cache size ? Or consider the maximum age
is enough ?


Sure, as long as it is configurable in the preferences. The default 
value shouldn't be too low in my opinion.


Paul

PS: Good luck with i18n update. If you could extend/clarify the readme 
after the ordeal, I would be thankful.



___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] JMapViewerTiles folder in my Temp folder

2012-08-28 Thread Pieren
On Mon, Aug 27, 2012 at 4:31 PM, Toby Murray  wrote:
> You can clear the cache by right
> clicking in the map and using the "Flush tile cache" option in the
> context menu.

If I might suggest an improvement, the command should be available in
the layer context menu as well (I would even suggest to move the whole
context menu from the map itself since it is very annoying as it
appears by accident many times during edition but that's another
story).

Pieren

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] JMapViewerTiles folder in my Temp folder

2012-08-28 Thread Vincent Privat
Should we also introduce a maximum cache size ? Or consider the maximum age
is enough ?
___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] JMapViewerTiles folder in my Temp folder

2012-08-28 Thread Paul Hartmann

On 08/27/2012 03:04 PM, Bob Hawkins wrote:

I use Microsoft Windows on my PC. I discovered a folder this morning
in my Local SettingsTemp folder titled JMapViewerTiles_Bob in which
there were a further six folders: Bing Aerial Maps, ITO OSL, Mapnik,
OOC OS 1_25K, OpenStreetMap and OS OpenData StreetView. They
contained 25,000 files in total, over half of which were in Bing
Aerial Maps. Some files date from late 2010, the others from late
2011. I joined OSM in May 2008 and have contributed edits to its
mapping since August 2008 using JOSM. I suspect the files relate to
WMS and Imagery Preferences in JOSM but do not understand if it is I
or an introduction into JOSM itself that has caused them to be
created since those dates. Is there no alternative now but to
regularly remove the files from the Temp folder?


The situation is not ideal, especially on Windows.

We need to
 * move TMS cache to %APPDATA%/JOSM/cache/tms
 * distribute over multiple folders
 * introduce maximum age, when cached images are deleted (user 
configurable)


WMS cache has some of these features, so we should try to adapt that code.

Paul

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


[josm-dev] JMapViewerTiles folder in my Temp folder

2012-08-28 Thread Bob Hawkins
Toby,

I thank you for your prompt reply.  It seems I must consciously open this 
folder and clear the items from time to time.  Those I had accumulated totalled 
169Mb.

Bob
___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] JMapViewerTiles folder in my Temp folder

2012-08-27 Thread Toby Murray
On Mon, Aug 27, 2012 at 8:04 AM, Bob Hawkins  wrote:
> I use Microsoft Windows on my PC. I discovered a folder this morning in my 
> Local SettingsTemp folder titled JMapViewerTiles_Bob in which there were a 
> further six folders: Bing Aerial Maps, ITO OSL, Mapnik, OOC OS 1_25K, 
> OpenStreetMap and OS OpenData StreetView. They contained 25,000 files in 
> total, over half of which were in Bing Aerial Maps. Some files date from late 
> 2010, the others from late 2011. I joined OSM in May 2008 and have 
> contributed edits to its mapping since August 2008 using JOSM. I suspect the 
> files relate to WMS and Imagery Preferences in JOSM but do not understand if 
> it is I or an introduction into JOSM itself that has caused them to be 
> created since those dates. Is there no alternative now but to regularly 
> remove the files from the Temp folder?

Yes, these are tile caches used by JOSM when you have a TMS imagery
layer active. I thought it was limited to 2 GB per layer but that must
have been an old setting that has been done away with because I have
over 12 GB of bing tiles cached. You can clear the cache by right
clicking in the map and using the "Flush tile cache" option in the
context menu. That will clear the cache for the currently visible
imagery layer. You can also change where the cache is stored in your
preferences under the WMS/TMS "Settings" tab.

Toby

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


[josm-dev] JMapViewerTiles folder in my Temp folder

2012-08-27 Thread Bob Hawkins
I use Microsoft Windows on my PC. I discovered a folder this morning in my 
Local SettingsTemp folder titled JMapViewerTiles_Bob in which there were a 
further six folders: Bing Aerial Maps, ITO OSL, Mapnik, OOC OS 1_25K, 
OpenStreetMap and OS OpenData StreetView. They contained 25,000 files in total, 
over half of which were in Bing Aerial Maps. Some files date from late 2010, 
the others from late 2011. I joined OSM in May 2008 and have contributed edits 
to its mapping since August 2008 using JOSM. I suspect the files relate to WMS 
and Imagery Preferences in JOSM but do not understand if it is I or an 
introduction into JOSM itself that has caused them to be created since those 
dates. Is there no alternative now but to regularly remove the files from the 
Temp folder?
___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev