Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rasterio.path has been renamed to rasterio._path #326

Merged
merged 2 commits into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
python_requires=">=3.7",
install_requires=[
'affine',
'fiona>=1.8.4,<2.*',
'shapely>=1.6.3,<2.*',
'fiona>=1.8.4,<=1.8.21',
'shapely>=1.6.3,<2.0.0',
'rasterio>=1.2.0',
'pillow',
'mercantile>=0.10.0',
Expand Down
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