Skip to content

Commit

Permalink
rasterio.path has been renamed to rasterio._path
Browse files Browse the repository at this point in the history
  • Loading branch information
drnextgis committed Apr 18, 2023
1 parent edff620 commit ceefb89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions telluric/base_vrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

from xml.dom import minidom
from rasterio.dtypes import _gdal_typename, check_dtype
from rasterio.path import parse_path, vsi_path
try:
from rasterio._path import _parse_path, _vsi_path
except ImportError:
from rasterio.path import parse_path as _parse_path, vsi_path as _vsi_path

from pkg_resources import resource_filename


Expand Down Expand Up @@ -113,7 +117,7 @@ def _setup_band_complexsource(
):
sourcefilename = ET.SubElement(complexsource, 'SourceFilename')
sourcefilename.attrib['relativeToVRT'] = "1" if relative_to_vrt else "0"
sourcefilename.text = vsi_path(parse_path(file_name))
sourcefilename.text = _vsi_path(_parse_path(file_name))
sourceband = ET.SubElement(complexsource, 'SourceBand')
sourceband.text = str(band_idx)
sourceproperties = ET.SubElement(complexsource, 'SourceProperties')
Expand Down

0 comments on commit ceefb89

Please sign in to comment.