mapreader.download.tile_loading
Module Contents
Classes
Attributes
- mapreader.download.tile_loading.logger
- mapreader.download.tile_loading.DEFAULT_TEMP_FOLDER = '_tile_cache/'
- mapreader.download.tile_loading.DEFAULT_IMG_DOWNLOAD_FORMAT = 'png'
- class mapreader.download.tile_loading.TileDownloader(tile_servers=None, img_format=None, show_progress=False)
- Parameters:
tile_servers (list)
img_format (str | None)
show_progress (bool)
- generate_tile_name(index)
Generates tile file names from GridIndex.
- Parameters:
index (GridIndex)
- Returns:
Tile file name
- Return type:
str
- generate_tile_url(index, subserver_index)
Generates tile download urls from GridIndex.
- Parameters:
index (GridIndex)
subserver_index (int) – Index no. of subserver to use for download
- Returns:
Tile download url
- Return type:
str
- download_tiles(grid_bb, download_in_parallel=True)
Downloads tiles contained within GridBoundingBox.
- Parameters:
grid_bb (GridBoundingBox) – GridBoundingBox containing tiles to download
download_in_parallel (bool, optional) – Whether or not to download tiles in parallel, by default True
- Return type:
xxxx