def test_satellite_image_download(zurich_bellevue, image_api): bbox = zurich_bellevue tl = TileLoader(bbox, image_api=image_api) tile = tl.load_tile() img = tile.image assert img.size[0] > 0 assert img.size[1] > 0
def load_tiles(self): self._printer("Start image loading.") loader = TileLoader(bbox=self.bbox, image_api=self.image_api) loader.load_tile() self.tile = loader.tile self._printer("Stop image loading.")
def test_new_bbox(small_bbox, image_api): tile_loader = TileLoader(small_bbox, image_api) tile_loader.load_tile() tile = tile_loader.tile tile_bbox = tile.bbox assert tile_bbox == small_bbox