large-image-source-rasterio 1.32.1.dev2__tar.gz → 1.32.1.dev5__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.
Files changed (14) hide show
  1. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/PKG-INFO +4 -4
  2. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/large_image_source_rasterio/__init__.py +7 -3
  3. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/large_image_source_rasterio.egg-info/PKG-INFO +4 -4
  4. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/large_image_source_rasterio.egg-info/requires.txt +2 -2
  5. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/pyproject.toml +4 -0
  6. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/setup.py +1 -6
  7. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/LICENSE +0 -0
  8. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/README.rst +0 -0
  9. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/large_image_source_rasterio/girder_source.py +0 -0
  10. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/large_image_source_rasterio.egg-info/SOURCES.txt +0 -0
  11. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/large_image_source_rasterio.egg-info/dependency_links.txt +0 -0
  12. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/large_image_source_rasterio.egg-info/entry_points.txt +0 -0
  13. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/large_image_source_rasterio.egg-info/top_level.txt +0 -0
  14. {large_image_source_rasterio-1.32.1.dev2 → large_image_source_rasterio-1.32.1.dev5}/setup.cfg +0 -0
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: large-image-source-rasterio
3
- Version: 1.32.1.dev2
3
+ Version: 1.32.1.dev5
4
4
  Summary: A rasterio tilesource for large_image.
5
5
  Home-page: https://github.com/girder/large_image
6
6
  Author: Kitware, Inc.
7
7
  Author-email: kitware@kitware.com
8
- License: Apache Software License 2.0
8
+ License: Apache-2.0
9
9
  Keywords: large_image,tile source
10
10
  Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: License :: OSI Approved :: Apache Software License
@@ -19,12 +19,12 @@ Classifier: Programming Language :: Python :: 3.13
19
19
  Requires-Python: >=3.8
20
20
  Description-Content-Type: text/x-rst
21
21
  License-File: LICENSE
22
- Requires-Dist: large-image>=1.32.1.dev2
22
+ Requires-Dist: large-image>=1.32.1.dev5
23
23
  Requires-Dist: rasterio<1.3.11,>=1.3; python_version < "3.9"
24
24
  Requires-Dist: rasterio>=1.3; python_version >= "3.9"
25
25
  Requires-Dist: packaging
26
26
  Provides-Extra: girder
27
- Requires-Dist: girder-large-image>=1.32.1.dev2; extra == "girder"
27
+ Requires-Dist: girder-large-image>=1.32.1.dev5; extra == "girder"
28
28
  Provides-Extra: all
29
29
  Requires-Dist: rio-cogeo; extra == "all"
30
30
 
@@ -686,7 +686,7 @@ class RasterioFileTileSource(GDALBaseFileTileSource, metaclass=LruCacheMetaclass
686
686
  or '+proj=' or a enumerated value like 'wgs84', or one of the super's values.
687
687
  :param kwargs: optional parameters.
688
688
 
689
- :returns: left, top, right, bottom, units. The new bounds in the either
689
+ :returns: left, top, right, bottom, width, height, units. The new bounds in the either
690
690
  pixel or class projection units.
691
691
  """
692
692
  # build the different corner from the parameters
@@ -699,6 +699,10 @@ class RasterioFileTileSource(GDALBaseFileTileSource, metaclass=LruCacheMetaclass
699
699
  top = bottom - height
700
700
  if bottom is None and top is not None and height is not None:
701
701
  bottom = top + height
702
+ elif self.projection:
703
+ left, top, right, bottom, width, height, units = self._applyUnitsWH(
704
+ left, top, right, bottom, width, height, units, kwargs.get('unitsWH'),
705
+ )
702
706
 
703
707
  # raise error if we didn't build one of the coordinates
704
708
  if (left is None and right is None) or (top is None and bottom is None):
@@ -743,7 +747,7 @@ class RasterioFileTileSource(GDALBaseFileTileSource, metaclass=LruCacheMetaclass
743
747
  right = pright if right is not None else None
744
748
  bottom = pbottom if bottom is not None else None
745
749
 
746
- return left, top, right, bottom, units
750
+ return left, top, right, bottom, width, height, units
747
751
 
748
752
  def _getRegionBounds(
749
753
  self,
@@ -789,7 +793,7 @@ class RasterioFileTileSource(GDALBaseFileTileSource, metaclass=LruCacheMetaclass
789
793
 
790
794
  # convert the coordinates if a projection exist
791
795
  if isUnits and isProj:
792
- left, top, right, bottom, units = self._convertProjectionUnits(
796
+ left, top, right, bottom, width, height, units = self._convertProjectionUnits(
793
797
  left, top, right, bottom, width, height, units, **kwargs,
794
798
  )
795
799
 
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: large-image-source-rasterio
3
- Version: 1.32.1.dev2
3
+ Version: 1.32.1.dev5
4
4
  Summary: A rasterio tilesource for large_image.
5
5
  Home-page: https://github.com/girder/large_image
6
6
  Author: Kitware, Inc.
7
7
  Author-email: kitware@kitware.com
8
- License: Apache Software License 2.0
8
+ License: Apache-2.0
9
9
  Keywords: large_image,tile source
10
10
  Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: License :: OSI Approved :: Apache Software License
@@ -19,12 +19,12 @@ Classifier: Programming Language :: Python :: 3.13
19
19
  Requires-Python: >=3.8
20
20
  Description-Content-Type: text/x-rst
21
21
  License-File: LICENSE
22
- Requires-Dist: large-image>=1.32.1.dev2
22
+ Requires-Dist: large-image>=1.32.1.dev5
23
23
  Requires-Dist: rasterio<1.3.11,>=1.3; python_version < "3.9"
24
24
  Requires-Dist: rasterio>=1.3; python_version >= "3.9"
25
25
  Requires-Dist: packaging
26
26
  Provides-Extra: girder
27
- Requires-Dist: girder-large-image>=1.32.1.dev2; extra == "girder"
27
+ Requires-Dist: girder-large-image>=1.32.1.dev5; extra == "girder"
28
28
  Provides-Extra: all
29
29
  Requires-Dist: rio-cogeo; extra == "all"
30
30
 
@@ -1,4 +1,4 @@
1
- large-image>=1.32.1.dev2
1
+ large-image>=1.32.1.dev5
2
2
  packaging
3
3
 
4
4
  [:python_version < "3.9"]
@@ -11,4 +11,4 @@ rasterio>=1.3
11
11
  rio-cogeo
12
12
 
13
13
  [girder]
14
- girder-large-image>=1.32.1.dev2
14
+ girder-large-image>=1.32.1.dev5
@@ -1,3 +1,7 @@
1
1
  [build-system]
2
2
  requires = ["setuptools", "setuptools-scm"]
3
3
  build-backend = "setuptools.build_meta"
4
+
5
+ [tool.setuptools_scm]
6
+ fallback_version = "0.0.0"
7
+ root = "../.."
@@ -16,15 +16,10 @@ except (ImportError, LookupError):
16
16
 
17
17
  setup(
18
18
  name='large-image-source-rasterio',
19
- use_scm_version={
20
- 'root': '../..',
21
-
22
- 'fallback_version': 'development',
23
- },
24
19
  description=description,
25
20
  long_description=long_description,
26
21
  long_description_content_type='text/x-rst',
27
- license='Apache Software License 2.0',
22
+ license='Apache-2.0',
28
23
  author='Kitware, Inc.',
29
24
  author_email='kitware@kitware.com',
30
25
  classifiers=[