On 03/21/2014 04:08 PM, Greg Troxel wrote: > I've already submitted the changes to JOSM's tracker, so that it simply > creates a directory hierarchy in the classical on-disk tile format > (Z/X/Y.png). JOSM adds some additional (useless) files into it, but > that's about it. > > I think sharing caches is a good idea. I am guessing viking is a > relatively minor player in this area (but perhaps not). So the idea of > letting JOSM be the defacto standard seems sensible.
JOSM as of now, stores the data with a different flat hierarchy, and doesn't do pruning. More importantly, the choice of the default cache directory is /tmp/JOSM/, which for most distributions is nowdays tmpfs. My relevant path is here: https://josm.openstreetmap.de/ticket/9813 and just changes the hierarchy to match the on-disk tile format, without changing the default directory. I agree with the developers that it would be nice to collaborate on a common cache directory for tiles. ~/.cache/tiles/[name] would be a good choice. However, how do we choose [name]? We could propose a simple key=value value inside the cache directory (such as ~/.cache/files/[id]/cache.conf that has some known attributes: name=descriptive name url=base url type=TMS/WMS size=size limit for the cache (0=unlimited) and then we could actually run through the first level hierarchy to discover existing caches based on type/url (since any id would be arbitrary). I could definitely help with JOSM (to implement the discovery/format/pruning), but I don't have enough time to also tweak viking. The idea here is up for discussion. > One could even have viking look in the josm default area, and save to it > if possible, as default behavior. As I said, I wouldn't bother with the current JOSM cache. On linux is basically doesn't exist. On windows, people have been complaning to get slower and slower over time (due to the missing pruning and hierarchy), so it's better that with start with something decent. I would be personally more inclined to provide (and use) a simple migration script for those who are interested to simplify the code. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Viking-devel mailing list Viking-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/viking-devel Viking home page: http://viking.sf.net/