Skip to content

Commit

Permalink
ensure default for sharing is false when opening raster
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Sep 18, 2019
1 parent 335b17c commit 2b874b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rioxarray/_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ def open_rasterio(
if lock is None:
lock = RASTERIO_LOCK

# ensure default for sharing is False
# ref https://github.com/mapbox/rasterio/issues/1504
open_kwargs["sharing"] = open_kwargs.get("sharing", False)
manager = CachingFileManager(
rasterio.open, filename, lock=lock, mode="r", kwargs=open_kwargs
)
Expand Down

0 comments on commit 2b874b9

Please sign in to comment.