large-image-source-rasterio 1.33.6.dev21__tar.gz → 1.33.6.dev25__tar.gz
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.
- {large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/PKG-INFO +4 -5
- {large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/large_image_source_rasterio/__init__.py +19 -24
- {large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/large_image_source_rasterio.egg-info/PKG-INFO +4 -5
- large_image_source_rasterio-1.33.6.dev25/large_image_source_rasterio.egg-info/requires.txt +9 -0
- {large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/setup.py +1 -2
- large_image_source_rasterio-1.33.6.dev21/large_image_source_rasterio.egg-info/requires.txt +0 -9
- {large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/LICENSE +0 -0
- {large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/README.rst +0 -0
- {large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/large_image_source_rasterio/girder_source.py +0 -0
- {large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/large_image_source_rasterio.egg-info/SOURCES.txt +0 -0
- {large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/large_image_source_rasterio.egg-info/dependency_links.txt +0 -0
- {large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/large_image_source_rasterio.egg-info/entry_points.txt +0 -0
- {large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/large_image_source_rasterio.egg-info/top_level.txt +0 -0
- {large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/pyproject.toml +0 -0
- {large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/setup.cfg +0 -0
{large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: large-image-source-rasterio
|
|
3
|
-
Version: 1.33.6.
|
|
3
|
+
Version: 1.33.6.dev25
|
|
4
4
|
Summary: A rasterio tilesource for large_image.
|
|
5
5
|
Home-page: https://github.com/girder/large_image
|
|
6
6
|
Author: Kitware, Inc.
|
|
@@ -9,20 +9,19 @@ License: Apache-2.0
|
|
|
9
9
|
Keywords: large_image,tile source
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
13
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
-
Requires-Python: >=3.
|
|
17
|
+
Requires-Python: >=3.10
|
|
19
18
|
Description-Content-Type: text/x-rst
|
|
20
19
|
License-File: LICENSE
|
|
21
|
-
Requires-Dist: large-image>=1.33.6.
|
|
20
|
+
Requires-Dist: large-image>=1.33.6.dev25
|
|
22
21
|
Requires-Dist: rasterio>=1.3
|
|
23
22
|
Requires-Dist: packaging
|
|
24
23
|
Provides-Extra: girder
|
|
25
|
-
Requires-Dist: girder-large-image>=1.33.6.
|
|
24
|
+
Requires-Dist: girder-large-image>=1.33.6.dev25; extra == "girder"
|
|
26
25
|
Provides-Extra: all
|
|
27
26
|
Requires-Dist: rio-cogeo; extra == "all"
|
|
28
27
|
Dynamic: author
|
|
@@ -14,15 +14,14 @@
|
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#############################################################################
|
|
16
16
|
|
|
17
|
+
import contextlib
|
|
18
|
+
import importlib.metadata
|
|
17
19
|
import math
|
|
18
20
|
import os
|
|
19
21
|
import pathlib
|
|
20
22
|
import tempfile
|
|
21
23
|
import threading
|
|
22
24
|
import warnings
|
|
23
|
-
from contextlib import suppress
|
|
24
|
-
from importlib.metadata import PackageNotFoundError
|
|
25
|
-
from importlib.metadata import version as _importlib_version
|
|
26
25
|
|
|
27
26
|
import numpy as np
|
|
28
27
|
import PIL.Image
|
|
@@ -43,11 +42,8 @@ from large_image.tilesource.geo import (GDALBaseFileTileSource,
|
|
|
43
42
|
ProjUnitsAcrossLevel0_MaxSize)
|
|
44
43
|
from large_image.tilesource.utilities import JSONDict
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
__version__ =
|
|
48
|
-
except PackageNotFoundError:
|
|
49
|
-
# package is not installed
|
|
50
|
-
pass
|
|
45
|
+
with contextlib.suppress(importlib.metadata.PackageNotFoundError):
|
|
46
|
+
__version__ = importlib.metadata.version(__name__)
|
|
51
47
|
|
|
52
48
|
rio = None
|
|
53
49
|
Affine = None
|
|
@@ -699,21 +695,20 @@ class RasterioFileTileSource(GDALBaseFileTileSource, metaclass=LruCacheMetaclass
|
|
|
699
695
|
add_alpha = not src_alpha_band
|
|
700
696
|
|
|
701
697
|
# read the image as a warp vrt
|
|
702
|
-
with self._getDatasetLock
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
tile = None
|
|
698
|
+
with self._getDatasetLock, rio.vrt.WarpedVRT(
|
|
699
|
+
ds,
|
|
700
|
+
resampling=rio.enums.Resampling.nearest,
|
|
701
|
+
crs=self.projection,
|
|
702
|
+
transform=dst_transform,
|
|
703
|
+
height=self.tileHeight,
|
|
704
|
+
width=self.tileWidth,
|
|
705
|
+
add_alpha=add_alpha,
|
|
706
|
+
) as vrt:
|
|
707
|
+
try:
|
|
708
|
+
tile = vrt.read(resampling=rio.enums.Resampling.nearest)
|
|
709
|
+
except Exception:
|
|
710
|
+
self.logger.exception('Failed to getTile')
|
|
711
|
+
tile = None
|
|
717
712
|
|
|
718
713
|
if tile is None:
|
|
719
714
|
tile = np.zeros((1, 1))
|
|
@@ -848,7 +843,7 @@ class RasterioFileTileSource(GDALBaseFileTileSource, metaclass=LruCacheMetaclass
|
|
|
848
843
|
|
|
849
844
|
# check if the units is a string or projection material
|
|
850
845
|
isProj = False
|
|
851
|
-
with suppress(rio.errors.CRSError):
|
|
846
|
+
with contextlib.suppress(rio.errors.CRSError):
|
|
852
847
|
isProj = make_crs(units) is not None
|
|
853
848
|
|
|
854
849
|
# convert the coordinates if a projection exist
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: large-image-source-rasterio
|
|
3
|
-
Version: 1.33.6.
|
|
3
|
+
Version: 1.33.6.dev25
|
|
4
4
|
Summary: A rasterio tilesource for large_image.
|
|
5
5
|
Home-page: https://github.com/girder/large_image
|
|
6
6
|
Author: Kitware, Inc.
|
|
@@ -9,20 +9,19 @@ License: Apache-2.0
|
|
|
9
9
|
Keywords: large_image,tile source
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
13
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
-
Requires-Python: >=3.
|
|
17
|
+
Requires-Python: >=3.10
|
|
19
18
|
Description-Content-Type: text/x-rst
|
|
20
19
|
License-File: LICENSE
|
|
21
|
-
Requires-Dist: large-image>=1.33.6.
|
|
20
|
+
Requires-Dist: large-image>=1.33.6.dev25
|
|
22
21
|
Requires-Dist: rasterio>=1.3
|
|
23
22
|
Requires-Dist: packaging
|
|
24
23
|
Provides-Extra: girder
|
|
25
|
-
Requires-Dist: girder-large-image>=1.33.6.
|
|
24
|
+
Requires-Dist: girder-large-image>=1.33.6.dev25; extra == "girder"
|
|
26
25
|
Provides-Extra: all
|
|
27
26
|
Requires-Dist: rio-cogeo; extra == "all"
|
|
28
27
|
Dynamic: author
|
{large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/setup.py
RENAMED
|
@@ -25,14 +25,13 @@ setup(
|
|
|
25
25
|
classifiers=[
|
|
26
26
|
'Development Status :: 5 - Production/Stable',
|
|
27
27
|
'Programming Language :: Python :: 3',
|
|
28
|
-
'Programming Language :: Python :: 3.9',
|
|
29
28
|
'Programming Language :: Python :: 3.10',
|
|
30
29
|
'Programming Language :: Python :: 3.11',
|
|
31
30
|
'Programming Language :: Python :: 3.12',
|
|
32
31
|
'Programming Language :: Python :: 3.13',
|
|
33
32
|
'Programming Language :: Python :: 3.14',
|
|
34
33
|
],
|
|
35
|
-
python_requires='>=3.
|
|
34
|
+
python_requires='>=3.10',
|
|
36
35
|
install_requires=[
|
|
37
36
|
f'large-image{limit_version}',
|
|
38
37
|
'rasterio>=1.3',
|
{large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/LICENSE
RENAMED
|
File without changes
|
{large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/pyproject.toml
RENAMED
|
File without changes
|
{large_image_source_rasterio-1.33.6.dev21 → large_image_source_rasterio-1.33.6.dev25}/setup.cfg
RENAMED
|
File without changes
|