Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#11872 closed defect (fixed)

WMS caching prevents using more than one layer from a particular WMS_endpoint

Reported by: Polarbear-j Owned by: wiktorn
Priority: normal Milestone: 15.09
Component: Core imagery Version:
Keywords: Cc:

Description

(rev 8761)
When I have different layers under one WMS_endpoint, I can only use one of them in the same session, because of the current caching mechanism. Let's say I have WMS_endpoint ABC where I can access historic maps A, B, and C. Since the cache is hold under the name ABC, it mixes the collected tiles.

Thus if call another layer, the tiles from the previous layer are still shown. Only when I move into a new area, the tiles for the new layer are fetched.

A minor related issue is, when I have loaded both layer A and B, I only see the name ABC in the layer list, and I have to remember which of them is A or B.

It does not help to delete one layer in the layer list before opening the other.
It does not help to clear the cache within the Imagery preferences/Cache content, apparently they are still in memory.
It only helps to close JOSM and start a new session.

A solution might be to separate the namespace, i.e. adding a suffix to the name shown in the layer list as well creating a separate cache for each suffix, e.g. ABC-A and ABC-B. The suffix would have to be derived from the service capabilities.

Attachments (0)

Change History (6)

comment:1 Changed 7 years ago by Polarbear-j

Component: CoreCore imagery

comment:2 Changed 7 years ago by wiktorn

Owner: changed from team to wiktorn
Status: newassigned

comment:3 Changed 7 years ago by wiktorn

Resolution: fixed
Status: assignedclosed

In 8763/josm:

Fix layer naming for wms_endpoint layers and caching issues stemming from same named layers.

Closes: #11872.

comment:4 Changed 7 years ago by wiktorn

Intention was to keep separate caches for each of the layers. But I have missed the naming issue of wms_endpoint layer. Now wms_endpoint layers will get suffix with selected layers, so this shall be fixed.

comment:5 Changed 7 years ago by wiktorn

Milestone: 15.09

comment:6 Changed 7 years ago by anonymous

That was quick, thanks a lot. Tested in rev 8765 and my test case works fine now, both the layer names in the list as well as the caching.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain wiktorn.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.