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

Class _Tile

source code

object --+
         |
        _Tile

Internal data object for all tiles. Stores the tile-coord and the tile data.
Instance Methods [hide private]
 
__init__(self, coord, source=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
source_buffer(self, *args, **kw) source code
 
source_image(self, *args, **kw) source code
 
is_missing(self)
Returns True when the tile has no data, except when the coord is None.
source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__repr__(self)
repr(x)
source code

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

Instance Variables [hide private]
ImageSource source
the data of this tile
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, coord, source=None)
(Constructor)

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

is_missing(self)

source code 

Returns True when the tile has no data, except when the coord is None. It doesn't check if the tile exists.

>>> _Tile((1, 2, 3)).is_missing()
True
>>> _Tile((1, 2, 3), './tmp/foo').is_missing()
False
>>> _Tile(None).is_missing()
False

__repr__(self)
(Representation operator)

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