-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for parallel tile downloads and control of cache (#217)
* Added support for parallel tile downloads in the bounds2raster and bounds2img functions * Fixed a memory bug when using threads to download tiles in parallel while also caching the downloaded tiles. The solution was to use parallel processes instead of threads. * Changed name of num_parallel_tile_downloads to n_connections, and set it to default value of 1. Added different n_connections values when testing the bounds2img() function. * Moved max_connections to be a parameter (was hardcoded before). Also added a parameter to disable caching, which is useful in resource constrained environments when using parallel connections for download. * Removed max_connections and updated docstrings for n_connections and disable_cache * Changed disable_cache=False to use_cache=True in bounds2raster() and bounds2img() function parameters to avoid using double negative
- Loading branch information
1 parent
0c8c9ce
commit 4ef4a67
Showing
2 changed files
with
63 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters