morecantile 5.4.0__tar.gz → 5.4.2__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 (29) hide show
  1. {morecantile-5.4.0 → morecantile-5.4.2}/PKG-INFO +2 -1
  2. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/__init__.py +1 -1
  3. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/models.py +5 -9
  4. {morecantile-5.4.0 → morecantile-5.4.2}/pyproject.toml +3 -2
  5. {morecantile-5.4.0 → morecantile-5.4.2}/.gitignore +0 -0
  6. {morecantile-5.4.0 → morecantile-5.4.2}/.pre-commit-config.yaml +0 -0
  7. {morecantile-5.4.0 → morecantile-5.4.2}/LICENSE +0 -0
  8. {morecantile-5.4.0 → morecantile-5.4.2}/README.md +0 -0
  9. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/commons.py +0 -0
  10. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/CDB1GlobalGrid.json +0 -0
  11. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/CanadianNAD83_LCC.json +0 -0
  12. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/EuropeanETRS89_LAEAQuad.json +0 -0
  13. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/GNOSISGlobalGrid.json +0 -0
  14. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/LINZAntarticaMapTilegrid.json +0 -0
  15. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/NZTM2000Quad.json +0 -0
  16. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/README.md +0 -0
  17. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/UPSAntarcticWGS84Quad.json +0 -0
  18. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/UPSArcticWGS84Quad.json +0 -0
  19. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/UTM31WGS84Quad.json +0 -0
  20. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/WGS1984Quad.json +0 -0
  21. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/WebMercatorQuad.json +0 -0
  22. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/WorldCRS84Quad.json +0 -0
  23. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/data/WorldMercatorWGS84Quad.json +0 -0
  24. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/defaults.py +0 -0
  25. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/errors.py +0 -0
  26. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/py.typed +0 -0
  27. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/scripts/__init__.py +0 -0
  28. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/scripts/cli.py +0 -0
  29. {morecantile-5.4.0 → morecantile-5.4.2}/morecantile/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: morecantile
3
- Version: 5.4.0
3
+ Version: 5.4.2
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
@@ -8,7 +8,7 @@ Refs:
8
8
 
9
9
  """
10
10
 
11
- __version__ = "5.4.0"
11
+ __version__ = "5.4.2"
12
12
 
13
13
  from .commons import BoundingBox, Coords, Tile # noqa
14
14
  from .defaults import TileMatrixSets, tms # noqa
@@ -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(
@@ -1253,9 +1250,8 @@ class TileMatrixSet(BaseModel, arbitrary_types_allowed=True):
1253
1250
 
1254
1251
  for w, s, e, n in bboxes:
1255
1252
  # Clamp bounding values.
1256
- ws_contain_180th = lons_contain_antimeridian(w, self.bbox.left)
1257
1253
  es_contain_180th = lons_contain_antimeridian(e, self.bbox.right)
1258
- w = min(self.bbox.left, w) if ws_contain_180th else max(self.bbox.left, w)
1254
+ w = max(self.bbox.left, w)
1259
1255
  s = max(self.bbox.bottom, s)
1260
1256
  e = max(self.bbox.right, e) if es_contain_180th else min(self.bbox.right, e)
1261
1257
  n = min(self.bbox.top, n)
@@ -16,6 +16,7 @@ classifiers = [
16
16
  "Programming Language :: Python :: 3.9",
17
17
  "Programming Language :: Python :: 3.10",
18
18
  "Programming Language :: Python :: 3.11",
19
+ "Programming Language :: Python :: 3.12",
19
20
  "Topic :: Scientific/Engineering :: GIS",
20
21
  ]
21
22
  dynamic = ["version"]
@@ -53,7 +54,7 @@ Documentation = "https://developmentseed.org/morecantile/"
53
54
  morecantile = "morecantile.scripts.cli:cli"
54
55
 
55
56
  [build-system]
56
- requires = ["flit>=3.2,<4"]
57
+ requires = ["flit_core>=3.2,<4"]
57
58
  build-backend = "flit_core.buildapi"
58
59
 
59
60
  [tool.flit.module]
@@ -113,7 +114,7 @@ filterwarnings = [
113
114
  ]
114
115
 
115
116
  [tool.bumpversion]
116
- current_version = "5.4.0"
117
+ current_version = "5.4.2"
117
118
 
118
119
  search = "{current_version}"
119
120
  replace = "{new_version}"
File without changes
File without changes
File without changes