f4d4d575203f952dd003a6b2398cd01e02669fc1,label_maker/images.py,,download_images,#Any#Any#Any#Any#Any#,13
Before Change
o = urlparse(imagery)
_, image_format = op.splitext(o.path)
for tile in tiles:
r = requests.get(url(tile.split("-"), imagery))
tile_img = op.join(dest_folder, "tiles", "{}{}".format(tile, image_format))
open(tile_img, "wb").write(r.content)
After Change
// get downloading function based on imagery string
download_function = download_tile_tms
if imagery[-4:].lower() == ".tif":
download_function = download_tile_tif
for tile in tiles:
download_function(tile, imagery, dest_folder)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: developmentseed/label-maker
Commit Name: f4d4d575203f952dd003a6b2398cd01e02669fc1
Time: 2018-02-25
Author: drew@developmentseed.org
File Name: label_maker/images.py
Class Name:
Method Name: download_images
Project Name: sahana/eden
Commit Name: 6001d45b73ff628aa58db73ad588aea7de74084b
Time: 2021-02-17
Author: dominic@nursix.org
File Name: modules/templates/RLPPTM/layouts.py
Class Name: S3MainMenuLayout
Method Name: layout
Project Name: developmentseed/label-maker
Commit Name: fa6ecc867347f46d896b10a60628c90e299937fc
Time: 2018-04-17
Author: drew@developmentseed.org
File Name: label_maker/preview.py
Class Name:
Method Name: preview