Package mapproxy :: Package core :: Module image :: Class TileMerger
[hide private]
[frames] | no frames]

Class TileMerger

source code

object --+
         |
        TileMerger

Merge multiple tiles into one image.
Instance Methods [hide private]
 
__init__(self, tile_grid, tile_size)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
ImageSource
merge(self, ordered_tiles, transparent=False)
Merge all tiles into one image.
source code
 
_src_size(self) source code
 
_tile_offset(self, i)
Return the image offset (upper-left coord) of the i-th tile, where the tiles are ordered row-wise, top to bottom.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tile_grid, tile_size)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Parameters:
  • tile_grid ((int(x_tiles), int(y_tiles))) - the grid size
  • tile_size - the size of each tile
Overrides: object.__init__

merge(self, ordered_tiles, transparent=False)

source code 
Merge all tiles into one image.
Parameters:
  • ordered_tiles - list of tiles, sorted row-wise (top to bottom)
Returns: ImageSource