morecantile 5.4.0__tar.gz → 5.4.1__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.
- {morecantile-5.4.0 → morecantile-5.4.1}/PKG-INFO +2 -1
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/__init__.py +1 -1
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/models.py +4 -7
- {morecantile-5.4.0 → morecantile-5.4.1}/pyproject.toml +2 -1
- {morecantile-5.4.0 → morecantile-5.4.1}/.gitignore +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/.pre-commit-config.yaml +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/LICENSE +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/README.md +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/commons.py +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/CDB1GlobalGrid.json +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/CanadianNAD83_LCC.json +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/EuropeanETRS89_LAEAQuad.json +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/GNOSISGlobalGrid.json +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/LINZAntarticaMapTilegrid.json +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/NZTM2000Quad.json +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/README.md +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/UPSAntarcticWGS84Quad.json +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/UPSArcticWGS84Quad.json +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/UTM31WGS84Quad.json +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/WGS1984Quad.json +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/WebMercatorQuad.json +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/WorldCRS84Quad.json +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/data/WorldMercatorWGS84Quad.json +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/defaults.py +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/errors.py +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/py.typed +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/scripts/__init__.py +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/scripts/cli.py +0 -0
- {morecantile-5.4.0 → morecantile-5.4.1}/morecantile/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: morecantile
|
|
3
|
-
Version: 5.4.
|
|
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,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 =
|
|
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(
|
|
@@ -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"]
|
|
@@ -113,7 +114,7 @@ filterwarnings = [
|
|
|
113
114
|
]
|
|
114
115
|
|
|
115
116
|
[tool.bumpversion]
|
|
116
|
-
current_version = "5.4.
|
|
117
|
+
current_version = "5.4.1"
|
|
117
118
|
|
|
118
119
|
search = "{current_version}"
|
|
119
120
|
replace = "{new_version}"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|