rio-tiler 7.0.0__py3-none-any.whl → 7.0.1__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/utils.py +23 -1
- {rio_tiler-7.0.0.dist-info → rio_tiler-7.0.1.dist-info}/METADATA +1 -1
- {rio_tiler-7.0.0.dist-info → rio_tiler-7.0.1.dist-info}/RECORD +7 -7
- {rio_tiler-7.0.0.dist-info → rio_tiler-7.0.1.dist-info}/WHEEL +0 -0
- {rio_tiler-7.0.0.dist-info → rio_tiler-7.0.1.dist-info}/licenses/AUTHORS.txt +0 -0
- {rio_tiler-7.0.0.dist-info → rio_tiler-7.0.1.dist-info}/licenses/LICENSE +0 -0
rio_tiler/__init__.py
CHANGED
rio_tiler/utils.py
CHANGED
|
@@ -791,7 +791,7 @@ def cast_to_sequence(val: Optional[Any] = None) -> Sequence:
|
|
|
791
791
|
return val
|
|
792
792
|
|
|
793
793
|
|
|
794
|
-
def
|
|
794
|
+
def _CRS_authority_info(crs: CRS) -> Optional[Tuple[str, str, str]]:
|
|
795
795
|
"""Convert CRS to URI.
|
|
796
796
|
|
|
797
797
|
Code adapted from https://github.com/developmentseed/morecantile/blob/1829fe12408e4a1feee7493308f3f02257ef4caf/morecantile/models.py#L148-L161
|
|
@@ -804,6 +804,28 @@ def CRS_to_uri(crs: CRS) -> Optional[str]:
|
|
|
804
804
|
if "_" in authority:
|
|
805
805
|
authority, version = authority.split("_")
|
|
806
806
|
|
|
807
|
+
return authority, version, code
|
|
808
|
+
|
|
809
|
+
return None
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
def CRS_to_uri(crs: CRS) -> Optional[str]:
|
|
813
|
+
"""Convert CRS to URI."""
|
|
814
|
+
if info := _CRS_authority_info(crs):
|
|
815
|
+
authority, version, code = info
|
|
816
|
+
|
|
807
817
|
return f"http://www.opengis.net/def/crs/{authority}/{version}/{code}"
|
|
808
818
|
|
|
809
819
|
return None
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
def CRS_to_urn(crs: CRS) -> Optional[str]:
|
|
823
|
+
"""Convert CRS to URN."""
|
|
824
|
+
if info := _CRS_authority_info(crs):
|
|
825
|
+
authority, version, code = info
|
|
826
|
+
if version == "0":
|
|
827
|
+
version = ""
|
|
828
|
+
|
|
829
|
+
return f"urn:ogc:def:crs:{authority}:{version}:{code}"
|
|
830
|
+
|
|
831
|
+
return None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: rio-tiler
|
|
3
|
-
Version: 7.0.
|
|
3
|
+
Version: 7.0.1
|
|
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/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
rio_tiler/__init__.py,sha256=
|
|
1
|
+
rio_tiler/__init__.py,sha256=_sDs-ikyolgEgq4ZfOl_IlviOKTABNFW3HkdAaekpwo,192
|
|
2
2
|
rio_tiler/colormap.py,sha256=xx43D4A5w3VgYB2CvuKvYFmAsYSuZLWbIfextsVYDB4,11085
|
|
3
3
|
rio_tiler/constants.py,sha256=55i-7JZDupTXZdLgxL03KsgM4lAzuGuIVP1zZKktzp0,426
|
|
4
4
|
rio_tiler/errors.py,sha256=4I3i0e1FtkLX5sIX6dfhUMUj3SWWoKqkjCkSG7k5i2M,1901
|
|
@@ -10,7 +10,7 @@ rio_tiler/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
10
10
|
rio_tiler/reader.py,sha256=FiDQQU_v8mDk2JTxBpLmsTqaCQFOsjOw0LocasLeXjk,22721
|
|
11
11
|
rio_tiler/tasks.py,sha256=tiQo24rZHBVxids40QkNInuMzDFEei08zYW3I_pkSVE,3157
|
|
12
12
|
rio_tiler/types.py,sha256=HbgECLqI4KoYVdMZv2pHSME4aiVvWea1ircqP9jQQCA,1468
|
|
13
|
-
rio_tiler/utils.py,sha256=
|
|
13
|
+
rio_tiler/utils.py,sha256=Nf6NaK-DkoXMu_ftiI8dXGr3UOAtIYJXe5AoMDOL94c,29242
|
|
14
14
|
rio_tiler/cmap_data/__init__.py,sha256=8FtVmfpTjXlvhxQ5QesN0UC1m_B3MuF3LbGbhMC5Rw4,1039
|
|
15
15
|
rio_tiler/cmap_data/accent.npy,sha256=Qde1ldOoXghe4L05v1QbVvnMA1ldwNjKWPf5xCBbmI4,1152
|
|
16
16
|
rio_tiler/cmap_data/accent_r.npy,sha256=ba-GWSMSPRAcm9CGzlXJeNG4ABbBHDCV602hAWV2idc,1152
|
|
@@ -233,8 +233,8 @@ rio_tiler/mosaic/reader.py,sha256=_YBwTJwHvXOzKwpNpOmmh0F4yicyxgWo9vHyof3w_Do,96
|
|
|
233
233
|
rio_tiler/mosaic/methods/__init__.py,sha256=tgkXM9skaTLXIm5QFoheOEznQXM97KGflcAWHfkrt1g,612
|
|
234
234
|
rio_tiler/mosaic/methods/base.py,sha256=9YZJWVRwH5Fk9KO9q5CW52Q8Mf60tAJ21oM4ixEDXBo,1424
|
|
235
235
|
rio_tiler/mosaic/methods/defaults.py,sha256=z34lna2wGXnAPwculjk_6hDrloqS8wzer68FFoIo7pg,6744
|
|
236
|
-
rio_tiler-7.0.
|
|
237
|
-
rio_tiler-7.0.
|
|
238
|
-
rio_tiler-7.0.
|
|
239
|
-
rio_tiler-7.0.
|
|
240
|
-
rio_tiler-7.0.
|
|
236
|
+
rio_tiler-7.0.1.dist-info/METADATA,sha256=EPy-_ItRPa10oTdqynm7ZsFz5IijMdN8ujOvRvZc2xY,12209
|
|
237
|
+
rio_tiler-7.0.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
238
|
+
rio_tiler-7.0.1.dist-info/licenses/AUTHORS.txt,sha256=FCVd4Tjg-8syl0ZugCunpXER8X2-XonW2ZfllyTnRvE,158
|
|
239
|
+
rio_tiler-7.0.1.dist-info/licenses/LICENSE,sha256=vq8Tt4KoYQT9JxAjQ4yXMmmhFYRTsBRgrOj-ao-bC5o,1517
|
|
240
|
+
rio_tiler-7.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|