Changes between Version 13 and Version 14 of SharedTileCache
- Timestamp:
- 2014-03-25T12:41:59+01:00 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SharedTileCache
v13 v14 6 6 Author/s:: Yuri D'Elia 7 7 Last revised:: 2014-03-23 8 9 === Minor revisions === 10 11 Lists of concerns addressed since the initial draft: 12 13 - 2014-03-24: Name of the cache "ID"/directory restricted to 20 characters (Robert Norris, from Viking development) 14 - 2014-03-24: Spaces removed from Windows/OSX shared tile root (Don-vip, JOSM) 15 - 2014-03-25: Use an "OSM" prefix for the shared tile root to limit namespace squatting (Kevin Krammer, Marble) 8 16 9 17 == Premise == … … 19 27 === Unix/Linux === 20 28 21 The cache directory root is located in the {{{$XDG_CACHE_HOME/tiles}}} (usually "~/.cache/tiles"). See the [http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification] to locate this directory correctly. 29 The cache directory root is located in the {{{$XDG_CACHE_HOME/osm/tiles}}} (usually "~/.cache/osm/tiles"). See the [http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification] to locate this directory correctly. 22 30 23 31 === Windows XP === 24 32 25 {{{%UserProfile%\Local Settings\Application Data\SharedTileCache\}}} 33 {{{%UserProfile%\Local Settings\Application Data\OSM\SharedTileCache\}}} 26 34 27 35 === Windows Vista, 7, 8 === 28 36 29 {{{%UserProfile%\AppData\Local\SharedTileCache\}}} 37 {{{%UserProfile%\AppData\Local\OSM\SharedTileCache\}}} 30 38 31 39 === Mac OS X === 32 40 33 {{{NSCachesDirectory/SharedTileCache}}} (usually "~/Library/Caches/SharedTileCache"). Use the NSPathUtilities to locate the cache directory using [https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/Reference/reference.html NSCachesDirectory]. 41 {{{NSCachesDirectory/OSM/SharedTileCache}}} (usually "~/Library/Caches/OSM/SharedTileCache"). Use the NSPathUtilities to locate the cache directory using [https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/Reference/reference.html NSCachesDirectory]. 34 42 35 43 == Tile directory layout == … … 46 54 47 55 {{{ 48 ~/.cache/tiles/ 49 ~/.cache/tiles/Mapnik/ 50 ~/.cache/tiles/Mapnik/cache.ini 51 ~/.cache/tiles/Mapnik/14/8709/5792.png 52 ~/.cache/tiles/Mapnik/14/8709/5793.png.ini 53 ~/.cache/tiles/Bing/ 54 ~/.cache/tiles/Bing/cache.ini 56 ~/.cache/osm/tiles/ 57 ~/.cache/osm/tiles/Mapnik/ 58 ~/.cache/osm/tiles/Mapnik/cache.ini 59 ~/.cache/osm/tiles/Mapnik/14/8709/5792.png 60 ~/.cache/osm/tiles/Mapnik/14/8709/5793.png.ini 61 ~/.cache/osm/tiles/Bing/ 62 ~/.cache/osm/tiles/Bing/cache.ini 55 63 ... 56 64 }}} … … 60 68 The "Cache properties" file defines data associated with the cache itself. The file is named "cache.ini" an is located at the root level of the cache: 61 69 62 {{{~/.cache/tiles/Mapnik/cache.ini}}} 70 {{{~/.cache/osm/tiles/Mapnik/cache.ini}}} 63 71 64 72 The file format is a simple text file, UTF-8 encoded, with each line containing a "key=value" pair. Applications '''must''' ignore any key that they don't know. Applications '''must''' also preserve all keys when the file is being updated. Any other arbitrary key can be included.
