diff --git a/torchgeo/datasets/geo.py b/torchgeo/datasets/geo.py index 6e4fb1919d1..406900ef2e7 100644 --- a/torchgeo/datasets/geo.py +++ b/torchgeo/datasets/geo.py @@ -308,7 +308,7 @@ def _merge_files(self, filepaths: Sequence[str], query: BoundingBox) -> Tensor: src_fhs = [rasterio.open(fn) for fn in filepaths] # Warp to a possibly new CRS - vrt_fhs = [WarpedVRT(src, crs=self.crs, nodata=0) for src in src_fhs] + vrt_fhs = [WarpedVRT(src, crs=self.crs) for src in src_fhs] # Merge files bounds = (query.minx, query.miny, query.maxx, query.maxy)