Commit 713dc00f authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Ensure that bounds are not None

parent e841dc47
......@@ -264,6 +264,8 @@ def read_as_numpy(img_files: List[str],
with rio.open(f) as ds:
if bounds is not None and ds.bounds != bounds:
need_warped_vrt = True
else:
bounds = ds.bounds
# If we change projection
if crs is not None and crs != ds.crs:
need_warped_vrt = True
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment