Package mapproxy :: Package core :: Module cache :: Class TileSource
[hide private]
[frames] | no frames]

Class TileSource

source code

object --+
         |
        TileSource
Known Subclasses:

Base class for tile sources. A TileSource knows how to get the _Tile.source for a given tile.
Instance Methods [hide private]
 
__init__(self, lock_dir=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
id(self)
Returns a unique but constant id of this TileSource used for locking.
source code
 
tile_lock(self, tile)
Returns a lock object for the given tile.
source code
 
lock_filename(self, tile) source code
list of Tiles
create_tile(self, tile, tile_map)
Create the given tile and set the _Tile.source.
source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, lock_dir=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

create_tile(self, tile, tile_map)

source code 
Create the given tile and set the _Tile.source. It doesn't store the data on disk (or else where), this is up to the cache manager.
Returns: list of Tiles

Note: This method may return multiple tiles, if it is more effective for the TileSource to create multiple tiles in one pass.

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)