Skip to content

Commit e728827

Browse files
authored
Merge pull request #47 from developmentseed/fix/32-large-download
Uncompress mbtiles line by line, close #32
2 parents e28f6e0 + 8e221d8 commit e728827

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

label_maker/download.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ def download_mbtiles(dest_folder, country, **kwargs):
2929
download(url=url, path=tmp_path)
3030
with gzip.open(tmp_path, 'rb') as r:
3131
with open(download_file, 'wb') as w:
32-
w.write(r.read())
32+
for line in r:
33+
w.write(line)

0 commit comments

Comments
 (0)