Bases: TileCache.Cache.Cache
Bases: TileCache.Cache.Cache
Provides a subclass of Disk Cache which saves in a simple z/x/y.extension, with Y=0 being the top of the map, and heading down. This tile layout makes for generation of tiles that is friendly to Google/OSM, and the opposite of TMS. This is useful for pre-generating tiles for Google Maps which are going to be used offline. This allows one to use TileCache in a gdal2tiles-like setup, using the cache to write out a directory which can be used in other places.
Note that ext3 (a common Linux filesystem) will not support more than 32000 files in a directory, so if you plan to store a whole world at z15 or greater, you should not use this cache class. (The Disk.py file is designed for this use case.)
>>> from TileCache.Layer import Layer, Tile
>>> l = Layer("test")
>>> t = Tile(l, 14, 18, 12)
>>> c = GoogleDisk("/tmp/tilecache")
>>> c.getKey(t)
'/tmp/tilecache/test/12/14/4077.png'
Bases: TileCache.Caches.Disk.Disk
Bases: TileCache.Cache.Cache
Bases: TileCache.Caches.S3.Response
Bases: TileCache.Caches.S3.Response
Bases: TileCache.Caches.S3.Response
Bases: TileCache.Caches.S3.Response
Bases: TileCache.Cache.Cache
A Cache class which does not cache anything: useful for testing during development, or any other setup where TileCache should not cache data. In general, using this with metatiles is very slow, and not recommended.