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

Class TiledImage

source code

object --+
         |
        TiledImage

An image built-up from multiple tiles.
Instance Methods [hide private]
 
__init__(self, tiles, tile_grid, tile_size, src_bbox, src_srs, transparent)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
ImageSource
image(self)
Return the tiles as one merged image.
source code
ImageSource
transform(self, req_bbox, req_srs, out_size)
Return the the tiles as one merged and transformed image.
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, tiles, tile_grid, tile_size, src_bbox, src_srs, transparent)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Parameters:
  • tiles - all tiles (sorted row-wise, top to bottom)
  • tile_grid ((int(x_tiles), int(y_tiles))) - the tile grid size
  • tile_size - the size of each tile
  • src_bbox - the bbox of all tiles
  • src_srs - the srs of the bbox
  • transparent - if the sources are transparent
Overrides: object.__init__

transform(self, req_bbox, req_srs, out_size)

source code 
Return the the tiles as one merged and transformed image.
Parameters:
  • req_bbox - the bbox of the output image
  • req_srs - the srs of the req_bbox
  • out_size - the size in pixel of the output image
Returns: ImageSource