urbanlc.downloader.base.BaseDownloader#
- class urbanlc.downloader.base.BaseDownloader(root: str, clear_cache: Optional[bool] = True)#
BaseDownloader class serving as an abstract base class for various data downloaders.
Methods
download_image
(image, bbox[, bands, scale, ...])Parallel download image patches based on specified parameters.
Abstract method for downloading images.
get_spatial_filter
(bounds, radius)Returns a BoundingBox instance based on the provided bounds and radius.
merge_patches
(base_filename[, compress])Merges downloaded GEOTIFF image patches and saves the merged file with the specified compression algorithm.
Removes the cache directory and recreates it.
set_root
(root)Sets the root directory for storing downloaded data.