Package viewer :: Package lib :: Module tileloader2 :: Class TileLoader
[hide private]
[frames] | no frames]

Class TileLoader

source code


A tile downloader using threads for downloads

Instance Methods [hide private]
 
__init__(self, tile_list={}, cache_dir='.cache', NUM_WORKER=1, NUM_SOCKETS=3)
Inits the TileLoader with its threads
source code
 
worker(self)
Thread worker
source code
 
handle_response(self, r, x, y, z, layer, file_extension)
Handles download responses, writes images to files
source code
 
load_images(self)
Loads images downloaded by workers to tile_list
source code
 
enqueue_tile(self, x, y, z, layer='mapnik')
Enqueues a tile to be downloaded
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tile_list={}, cache_dir='.cache', NUM_WORKER=1, NUM_SOCKETS=3)
(Constructor)

source code 

Inits the TileLoader with its threads

Overrides: object.__init__