Skip to content

Commit

Permalink
Removed two prints which were there for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
acerioni committed Jan 26, 2021
1 parent afabcb8 commit dd9e525
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions helpers/MIL.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,9 @@ def get_geotiff(mil_url, bbox, width, height, filename, imageSR=2056, bboxSR=205
#print('Fetching image...')
url = image_metadata['href']
r = requests.get(url, allow_redirects=True, verify=False, timeout=10)
print(f'Writing image file: {tiff_filename}')
with open(tiff_filename, 'wb') as fp:
fp.write(r.content)

print(f'TIFF -> GeoTIFF: {geotiff_filename}')
src_ds = gdal.Open(tiff_filename)
#dst_ds = gdal.Translate(geotiff_filename, src_ds, options='-of GTiff -a_srs EPSG:2056 -a_nodata 253')
gdal.Translate(geotiff_filename, src_ds, options=f'-of GTiff -a_srs EPSG:{imageSR}')
Expand Down

0 comments on commit dd9e525

Please sign in to comment.