Skip to content

Commit

Permalink
Merge pull request #1255 from opendatacube/remove_rasterio_path
Browse files Browse the repository at this point in the history
Remove reference to `rasterio.path`.
  • Loading branch information
SpacemanPaul committed May 18, 2022
2 parents 686a23a + 43a66a5 commit 67dde96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions datacube/storage/_rio.py
Expand Up @@ -13,7 +13,6 @@
import numpy as np
from affine import Affine
import rasterio
import rasterio.path
from urllib.parse import urlparse
from typing import Optional, Iterator

Expand Down Expand Up @@ -165,8 +164,7 @@ def open(self) -> Iterator[GeoRasterReader]:

try:
_LOG.debug("opening %s", self.filename)
with rasterio.DatasetReader(rasterio.path.parse_path(str(self.filename)),
sharing=False) as src:
with rasterio.open(str(self.filename), sharing=False) as src:
override = False

transform = src.transform
Expand Down
1 change: 1 addition & 0 deletions docs/about/whats_new.rst
Expand Up @@ -8,6 +8,7 @@ What's New
v1.8.next
=========

- Remove reference to `rasterio.path`. (:pull:`1255`)
- Cleaner separation of postgis and postgres drivers, and suppress SQLAlchemy cache warnings. (:pull:`1254`)
- Prevent Shapely deprecation warning. (:pull:`1253`)
- Clearer error message when local metadata file does not exist. (:pull:`1252`)
Expand Down

0 comments on commit 67dde96

Please sign in to comment.