morecantile 5.4.0__py3-none-any.whl → 5.4.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.
morecantile/__init__.py CHANGED
@@ -8,7 +8,7 @@ Refs:
8
8
 
9
9
  """
10
10
 
11
- __version__ = "5.4.0"
11
+ __version__ = "5.4.1"
12
12
 
13
13
  from .commons import BoundingBox, Coords, Tile # noqa
14
14
  from .defaults import TileMatrixSets, tms # noqa
morecantile/models.py CHANGED
@@ -1,7 +1,6 @@
1
1
  """Pydantic modules for OGC TileMatrixSets (https://www.ogc.org/standards/tms)"""
2
2
 
3
3
  import math
4
- import sys
5
4
  import warnings
6
5
  from functools import cached_property
7
6
  from typing import Any, Dict, Iterator, List, Literal, Optional, Sequence, Tuple, Union
@@ -18,6 +17,7 @@ from pydantic import (
18
17
  model_validator,
19
18
  )
20
19
  from pyproj.exceptions import CRSError, ProjError
20
+ from typing_extensions import Annotated
21
21
 
22
22
  from morecantile.commons import BoundingBox, Coords, Tile
23
23
  from morecantile.errors import (
@@ -37,11 +37,6 @@ from morecantile.utils import (
37
37
  to_rasterio_crs,
38
38
  )
39
39
 
40
- if sys.version_info >= (3, 9):
41
- from typing import Annotated # pylint: disable=no-name-in-module
42
- else:
43
- from typing_extensions import Annotated
44
-
45
40
  NumType = Union[float, int]
46
41
  BoundsType = Tuple[NumType, NumType]
47
42
  LL_EPSILON = 1e-11
@@ -499,7 +494,9 @@ class TileMatrixSet(BaseModel, arbitrary_types_allowed=True):
499
494
  """Set private attributes."""
500
495
  super().__init__(**data)
501
496
 
502
- self._geographic_crs = data.get("_geographic_crs", WGS84_CRS)
497
+ self._geographic_crs = pyproj.CRS.from_user_input(
498
+ data.get("_geographic_crs", WGS84_CRS)
499
+ )
503
500
 
504
501
  try:
505
502
  self._to_geographic = pyproj.Transformer.from_crs(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: morecantile
3
- Version: 5.4.0
3
+ Version: 5.4.1
4
4
  Summary: Construct and use map tile grids (a.k.a TileMatrixSet / TMS).
5
5
  Keywords: GIS,TMS,TileMatrixSet,Map Tile
6
6
  Author-email: Vincent Sarago <vincent@developmentseed.com>
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python :: 3.8
13
13
  Classifier: Programming Language :: Python :: 3.9
14
14
  Classifier: Programming Language :: Python :: 3.10
15
15
  Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
16
17
  Classifier: Topic :: Scientific/Engineering :: GIS
17
18
  Requires-Dist: attrs
18
19
  Requires-Dist: pyproj~=3.1
@@ -1,8 +1,8 @@
1
- morecantile/__init__.py,sha256=B3bwKQ6lnIdyGjhiY4tIaXijufhhRYii91hw7c_3FTU,436
1
+ morecantile/__init__.py,sha256=mgo9j3ZBS89YqlQbaaU6e5ccjDv7pTDXHsdz-uWcqSU,436
2
2
  morecantile/commons.py,sha256=nOj5f5K5EbDZiC0QTK2f14Mpkz6YIZyCaaUI0S9aWIw,1015
3
3
  morecantile/defaults.py,sha256=9lvHmZ9WM_J5uNCS9VWEy8O5_x2dA2Spvk4H5aHv6UQ,1804
4
4
  morecantile/errors.py,sha256=rhtdpNglfEz5nC8I-BJKUr_gkOwAPwVi1vhLFJ2StYw,907
5
- morecantile/models.py,sha256=mRCIDQ2VjMjNigF9mUiPy2oLehGmSSwD3VdVO_OH0Wc,51649
5
+ morecantile/models.py,sha256=AFppF0M59MoAsYeISPO0eB5buedSaGd9tfUwVdIifO0,51576
6
6
  morecantile/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  morecantile/utils.py,sha256=-JUTcrwhT_TEWAPWV8YQBQJoYU2HfVkqQEJaggtnKJg,4020
8
8
  morecantile/data/CDB1GlobalGrid.json,sha256=VDc2ukAWtTQeCdOG8YMqsGO-D7eSzSCN1TEaBn2qLZI,36115
@@ -21,8 +21,8 @@ morecantile/data/WorldCRS84Quad.json,sha256=l0Wf2faYwzRwO0mG-Tea1Vydpi7V1Oel5L9l
21
21
  morecantile/data/WorldMercatorWGS84Quad.json,sha256=JaqoBSu5qVJmL-J7oSVU1etP2OPWx_aVaTc68dGX0Ec,7001
22
22
  morecantile/scripts/__init__.py,sha256=-CJncfgWDnSZ8au-SJtgX-OFgCddlf7___d91qQcqQM,23
23
23
  morecantile/scripts/cli.py,sha256=TOc1RjLXuTzKs2FNNHQ3eCiGqiBoDFA4fKWpOAuY12s,17364
24
- morecantile-5.4.0.dist-info/entry_points.txt,sha256=keoXuYgnX-mdrGWwXIHqEkSZjQK_iAmtmdrtZ3sCT24,59
25
- morecantile-5.4.0.dist-info/LICENSE,sha256=18IxFIta7rF_RcVSIgLUUd_alyfQ9bGoZKQm5vOarGU,1073
26
- morecantile-5.4.0.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
27
- morecantile-5.4.0.dist-info/METADATA,sha256=i2CkO0u8mtXiXaEFYyYGNsanIizhMs2bXLLZA8ElFFg,6938
28
- morecantile-5.4.0.dist-info/RECORD,,
24
+ morecantile-5.4.1.dist-info/entry_points.txt,sha256=keoXuYgnX-mdrGWwXIHqEkSZjQK_iAmtmdrtZ3sCT24,59
25
+ morecantile-5.4.1.dist-info/LICENSE,sha256=18IxFIta7rF_RcVSIgLUUd_alyfQ9bGoZKQm5vOarGU,1073
26
+ morecantile-5.4.1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
27
+ morecantile-5.4.1.dist-info/METADATA,sha256=nrWPckGs2D8AaSIHYUUyri8Dxv64I05lXoSIFd2K75M,6989
28
+ morecantile-5.4.1.dist-info/RECORD,,