EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit d841d0be authored by Lubomir Dolezal's avatar Lubomir Dolezal
Browse files

fix keyerror when DMD_EXTENSIONS metadata not set

parent 73011e52
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,7 @@ def output_step(source_dir: os.PathLike, target_dir: os.PathLike, options: dict=
driver = gdal.GetDriverByName(frmt)
if not driver:
raise ValueError('Unsupported driver %s' % frmt)
extension = driver.GetMetadata()['DMD_EXTENSIONS'].split(' ')[0]
extension = driver.GetMetadata().get('DMD_EXTENSIONS', 'tif').split(' ')[0]
# warp each individual file
warped_files = []
for filename in glob(join(source_dir, '*.tif')):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment