Skip to content

Commit

Permalink
Silence rasterio warning
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Aug 9, 2021
1 parent 074b2a4 commit 803b386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchgeo/datasets/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 803b386

Please sign in to comment.