Ejemplo n.º 1
0
 def _download_images(self, t_minx, t_miny, t_maxx, t_maxy):
     url_builder = UrlBuilder(self._zoom_level)
     urls = url_builder.get_urls_by_tiles(t_minx, t_miny, t_maxx, t_maxy)
     loader = MultiLoader(urls)
     loader.download()
     return loader.results
Ejemplo n.º 2
0
def test_multi_loader(urls):
    multi_loader = MultiLoader(urls=urls)
    multi_loader.download()
    assert 2 == len(multi_loader.results)
 def _download_images(self, t_minx, t_miny, t_maxx, t_maxy):
     url_builder = UrlBuilder(self._zoom_level)
     urls = url_builder.get_urls_by_tiles(t_minx, t_miny, t_maxx, t_maxy)
     loader = MultiLoader(urls)
     loader.download()
     return loader.results
def test_multi_loader(urls):
    multi_loader = MultiLoader(urls=urls)
    multi_loader.download()
    assert 2 == len(multi_loader.results)