Re: [josm-dev] Does Caching WMS work?
> To get a caching over sessions, you need to use the bookmark function to > bookmark a specific zoomlevel. Otherwise the cache will be invalidated > each time you open a new WMS layer. Thanks a lot. Could someone put this hint in a tooltip of WMS plugin? -- Jonas Stein ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Does Caching WMS work?
On Wed, 7 Jul 2010, Alan Mintz wrote: I'm working with the USGS HRO WMS datasets that do not ever get updated (they are apparently from one particular satellite task), so I'd expect that I should be able to cache every tile for the areas I'm working on and shouldn't have to hit the servers at all (given appropriate maxsize and expire settings), right? To get a caching over sessions, you need to use the bookmark function to bookmark a specific zoomlevel. Otherwise the cache will be invalidated each time you open a new WMS layer. Ciao -- http://www.dstoecker.eu/ (PGP key available) ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Does Caching WMS work?
I have: cache.wmsplugin.expire=2419200 cache.wmsplugin.maxsize=70 but it still takes a second or two per tile to load. Also, looking in the cache directory, there are only 112 objects (26MB) and I'm sure I've covered more area than that in the last month (the current setting of expire), and there doesn't seem to be a database that might contain the sites, zoom levels, etc. Can someone comment on how this is supposed to work? I'm working with the USGS HRO WMS datasets that do not ever get updated (they are apparently from one particular satellite task), so I'd expect that I should be able to cache every tile for the areas I'm working on and shouldn't have to hit the servers at all (given appropriate maxsize and expire settings), right? -- Alan Mintz ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Does Caching WMS work?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Martin, I just looked at the source code of wmsplugin. (I did not write it, though.) Am 03.07.2010 17:06, schrieb M∡rtin Koppenhoefer: > 1. Am I right asuming that cache expiry is about time? Yes, the expiry is a time value. > If I put 0 or > -1 does it mean never expire? Or do I have to put something else? I'm not sure about 0 because the code is a bit inconsistent. Every negative value is replaced internally with CacheFiles.EXPIRE_NEVER (= -1). > are the numbers milliseconds, seconds or sth else? The numbers are seconds, the default value is one day (60 * 60 * 24) > > 2. is the number for size in bytes? maxsize is in megabytes (100), default is 50. Any negative value is replaced with -1 which seems to mean "unlimited" > > 3. What happens if I change the zoomlevel? Will it delete the whole cache? Don't know. Bodo -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkwvl/AACgkQnMz9fgzDSqfGAgCfU6iDljMXA42yDm9+A49Y9UAT p44An32ws2bsna6CSfmK4hD3QJ39xx7x =JBmV -END PGP SIGNATURE- ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Does Caching WMS work?
2010/7/3 Dirk Stöcker : > On Sat, 3 Jul 2010, M∡rtin Koppenhoefer wrote: > >>> Which ones exactly? At least one allows to set the size of the cache (in >>> bytes/numbers). Which OS? >> >> OS: Ubuntu 10.04 I had no cache directory inserted and therefore thought to find it in home/user/.josm/plugins/wms/cache (this was written as tooltip for the standard) but this directory (it existed) was empty. >> Is there any documentation on the setting variables online? >> (Cache-expire, is this seconds?) The numbers for size are in bytes? I >> couldn't find it in the wiki. > > Like all hidden values they usually are not documented. That's what I guessed. Maybe someone can explain this: 1. Am I right asuming that cache expiry is about time? If I put 0 or -1 does it mean never expire? Or do I have to put something else? are the numbers milliseconds, seconds or sth else? 2. is the number for size in bytes? 3. What happens if I change the zoomlevel? Will it delete the whole cache? cheers, Martin ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Does Caching WMS work?
On Sat, 3 Jul 2010, M∡rtin Koppenhoefer wrote: Which ones exactly? At least one allows to set the size of the cache (in bytes/numbers). Which OS? OS: Ubuntu 10.04 Is there any documentation on the setting variables online? (Cache-expire, is this seconds?) The numbers for size are in bytes? I couldn't find it in the wiki. Like all hidden values they usually are not documented. Ciao -- http://www.dstoecker.eu/ (PGP key available)___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
Re: [josm-dev] Does Caching WMS work?
2010/7/2 Dirk Stöcker : > On Fri, 2 Jul 2010, M∡rtin Koppenhoefer wrote: > >> I have the idea that caching actually doesn't work, at least my >> cache-Folder is completely empty (but I have pictures on the screen >> right now). >> Can anyone confirm that it works? What is the meaning of the >> caching-variable in prefs.? > > For me it works as expected. Probably you turned it off? Maybe it requires a restart of JOSM after changes in the config are made? > Which ones exactly? At least one allows to set the size of the cache (in > bytes/numbers). Which OS? OS: Ubuntu 10.04 Is there any documentation on the setting variables online? (Cache-expire, is this seconds?) The numbers for size are in bytes? I couldn't find it in the wiki. cheers, Martin ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev
[josm-dev] Does Caching WMS work?
I have the idea that caching actually doesn't work, at least my cache-Folder is completely empty (but I have pictures on the screen right now). Can anyone confirm that it works? What is the meaning of the caching-variable in prefs.? cheers, Martin ___ josm-dev mailing list josm-dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/josm-dev