#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 by , 10 years ago
Component: | Core → Core imagery |
---|
comment:2 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 by , 10 years ago
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 by , 10 years ago
Milestone: | → 15.09 |
---|
comment:6 by , 10 years ago
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.
In 8763/josm: