From 803b3862f62208d6a9a90c94912db5655d23cf38 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Mon, 9 Aug 2021 16:02:06 +0000 Subject: [PATCH] Silence rasterio warning --- torchgeo/datasets/geo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)