rio-tiler 7.4.0__py3-none-any.whl → 7.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rio_tiler/__init__.py +1 -1
- rio_tiler/errors.py +4 -0
- rio_tiler/experimental/__init__.py +10 -0
- rio_tiler/experimental/vsifile.py +36 -0
- {rio_tiler-7.4.0.dist-info → rio_tiler-7.5.0.dist-info}/METADATA +2 -1
- {rio_tiler-7.4.0.dist-info → rio_tiler-7.5.0.dist-info}/RECORD +9 -7
- {rio_tiler-7.4.0.dist-info → rio_tiler-7.5.0.dist-info}/WHEEL +0 -0
- {rio_tiler-7.4.0.dist-info → rio_tiler-7.5.0.dist-info}/licenses/AUTHORS.txt +0 -0
- {rio_tiler-7.4.0.dist-info → rio_tiler-7.5.0.dist-info}/licenses/LICENSE +0 -0
rio_tiler/__init__.py
CHANGED
rio_tiler/errors.py
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""The "experimental" module of rio-tiler contains potential new features that are subject to change."""
|
|
2
|
+
|
|
3
|
+
import warnings
|
|
4
|
+
|
|
5
|
+
from rio_tiler.errors import RioTilerExperimentalWarning
|
|
6
|
+
|
|
7
|
+
warnings.warn(
|
|
8
|
+
"This module is experimental, its contents are subject to change and deprecation.",
|
|
9
|
+
category=RioTilerExperimentalWarning,
|
|
10
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""rio_tiler.io.Reader with VSIFILE/Obstore Opener."""
|
|
2
|
+
|
|
3
|
+
from typing import Union
|
|
4
|
+
|
|
5
|
+
import attr
|
|
6
|
+
import rasterio
|
|
7
|
+
from rasterio.io import DatasetReader, DatasetWriter, MemoryFile
|
|
8
|
+
from rasterio.vrt import WarpedVRT
|
|
9
|
+
|
|
10
|
+
from rio_tiler.io import Reader
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
import vsifile
|
|
14
|
+
from vsifile.rasterio import opener
|
|
15
|
+
except ImportError: # pragma: nocover
|
|
16
|
+
vsifile = None # type: ignore
|
|
17
|
+
opener = None # type: ignore
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@attr.s
|
|
21
|
+
class VSIReader(Reader):
|
|
22
|
+
"""Rasterio Reader with VSIFILE opener."""
|
|
23
|
+
|
|
24
|
+
dataset: Union[DatasetReader, DatasetWriter, MemoryFile, WarpedVRT] = attr.ib(
|
|
25
|
+
default=None, init=False
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
def __attrs_post_init__(self):
|
|
29
|
+
"""Use vsifile.rasterio.opener as Python file opener."""
|
|
30
|
+
assert vsifile is not None, "VSIFILE must be installed to use VSIReader"
|
|
31
|
+
|
|
32
|
+
self.dataset = self._ctx_stack.enter_context(
|
|
33
|
+
rasterio.open(self.input, opener=opener)
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
super().__attrs_post_init__()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rio-tiler
|
|
3
|
-
Version: 7.
|
|
3
|
+
Version: 7.5.0
|
|
4
4
|
Summary: User friendly Rasterio plugin to read raster datasets.
|
|
5
5
|
Project-URL: Homepage, https://cogeotiff.github.io/rio-tiler/
|
|
6
6
|
Project-URL: Documentation, https://cogeotiff.github.io/rio-tiler/
|
|
@@ -83,6 +83,7 @@ Requires-Dist: morecantile<7.0,>=6.0; extra == 'test'
|
|
|
83
83
|
Requires-Dist: pytest; extra == 'test'
|
|
84
84
|
Requires-Dist: pytest-cov; extra == 'test'
|
|
85
85
|
Requires-Dist: rioxarray; extra == 'test'
|
|
86
|
+
Requires-Dist: vsifile>=0.2; extra == 'test'
|
|
86
87
|
Requires-Dist: xarray; extra == 'test'
|
|
87
88
|
Provides-Extra: tilebench
|
|
88
89
|
Requires-Dist: pytest; extra == 'tilebench'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
rio_tiler/__init__.py,sha256=
|
|
1
|
+
rio_tiler/__init__.py,sha256=CL9-LOvrMINp7STIs-jv2bfg6wSzO1o4n53Easmkt90,192
|
|
2
2
|
rio_tiler/colormap.py,sha256=E2FYp6AysmnSAhj2901XUrgB2q-8OvO8zoe_hmM_UZU,11186
|
|
3
3
|
rio_tiler/constants.py,sha256=55i-7JZDupTXZdLgxL03KsgM4lAzuGuIVP1zZKktzp0,426
|
|
4
|
-
rio_tiler/errors.py,sha256=
|
|
4
|
+
rio_tiler/errors.py,sha256=dnaAHPc5VL7SNKXm00gzlrU_4XIuw5rwzD-9Q2kFJsc,2018
|
|
5
5
|
rio_tiler/expression.py,sha256=EVHWgjMqIn4TTPfqT_HV1RWCQlxqOj3OtEr1iUDiFHE,2282
|
|
6
6
|
rio_tiler/logger.py,sha256=RR8lnW3uVXkFkPa3nNJS_tTndmdiNNDVXpCDGDxGf0A,81
|
|
7
7
|
rio_tiler/models.py,sha256=jZl-AWiCVYgOtws640kB8_XrzBn7ID32CHTL9lOP_KM,27724
|
|
@@ -223,6 +223,8 @@ rio_tiler/cmap_data/ylorbr.npy,sha256=Pr15CJLR4-U1cWG4HbaFo5WzSH9mHTNzMZYckKOgzo
|
|
|
223
223
|
rio_tiler/cmap_data/ylorbr_r.npy,sha256=LjRoulX86uju7woCI_m4zzmAJMDpg-ky7p4f9vUktjc,1152
|
|
224
224
|
rio_tiler/cmap_data/ylorrd.npy,sha256=9ImXljw40oe60w8uV4EMDPY4aFFVkGbyCBi6SlTX83w,1152
|
|
225
225
|
rio_tiler/cmap_data/ylorrd_r.npy,sha256=K5uiHNHbLxV5SizyT09cSVAxldE-BW5GpOXxUp7UsTE,1152
|
|
226
|
+
rio_tiler/experimental/__init__.py,sha256=dgW817h5U9OQt4V68L912g3DivPfhoWKvS-mI83sqio,328
|
|
227
|
+
rio_tiler/experimental/vsifile.py,sha256=t1tJviPmFkjWIbr86BEnsK7pU4iiqLh1pKYZyNNb1AY,960
|
|
226
228
|
rio_tiler/io/__init__.py,sha256=_L4iILm6vSiJ14GEDDOvkuUHRtbWC9oqx6Bu8PxHhvA,270
|
|
227
229
|
rio_tiler/io/base.py,sha256=nyaAtfodM-5fXd1WsGG5Qh544PNv9Hy4FLQ_nPj8hw8,52154
|
|
228
230
|
rio_tiler/io/rasterio.py,sha256=9GtbUPialsFMnxVUKrJ8ZItC3sWS8zddrO8aiPG07AU,29011
|
|
@@ -233,8 +235,8 @@ rio_tiler/mosaic/reader.py,sha256=_YBwTJwHvXOzKwpNpOmmh0F4yicyxgWo9vHyof3w_Do,96
|
|
|
233
235
|
rio_tiler/mosaic/methods/__init__.py,sha256=tgkXM9skaTLXIm5QFoheOEznQXM97KGflcAWHfkrt1g,612
|
|
234
236
|
rio_tiler/mosaic/methods/base.py,sha256=9YZJWVRwH5Fk9KO9q5CW52Q8Mf60tAJ21oM4ixEDXBo,1424
|
|
235
237
|
rio_tiler/mosaic/methods/defaults.py,sha256=z34lna2wGXnAPwculjk_6hDrloqS8wzer68FFoIo7pg,6744
|
|
236
|
-
rio_tiler-7.
|
|
237
|
-
rio_tiler-7.
|
|
238
|
-
rio_tiler-7.
|
|
239
|
-
rio_tiler-7.
|
|
240
|
-
rio_tiler-7.
|
|
238
|
+
rio_tiler-7.5.0.dist-info/METADATA,sha256=8PLYpUCJGKFH7QwxPMm0pz-Ax7mdNwgtxce2RBWrZ6g,12230
|
|
239
|
+
rio_tiler-7.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
240
|
+
rio_tiler-7.5.0.dist-info/licenses/AUTHORS.txt,sha256=FCVd4Tjg-8syl0ZugCunpXER8X2-XonW2ZfllyTnRvE,158
|
|
241
|
+
rio_tiler-7.5.0.dist-info/licenses/LICENSE,sha256=vq8Tt4KoYQT9JxAjQ4yXMmmhFYRTsBRgrOj-ao-bC5o,1517
|
|
242
|
+
rio_tiler-7.5.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|