morecantile 5.2.0__tar.gz → 5.2.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.
- {morecantile-5.2.0 → morecantile-5.2.2}/.bumpversion.cfg +1 -1
- {morecantile-5.2.0 → morecantile-5.2.2}/PKG-INFO +1 -1
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/__init__.py +1 -1
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/README.md +1 -1
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/WGS1984Quad.json +2 -2
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/models.py +6 -9
- {morecantile-5.2.0 → morecantile-5.2.2}/.gitignore +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/.pre-commit-config.yaml +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/LICENSE +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/README.md +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/commons.py +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/CDB1GlobalGrid.json +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/CanadianNAD83_LCC.json +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/EuropeanETRS89_LAEAQuad.json +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/GNOSISGlobalGrid.json +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/LINZAntarticaMapTilegrid.json +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/NZTM2000Quad.json +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/UPSAntarcticWGS84Quad.json +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/UPSArcticWGS84Quad.json +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/UTM31WGS84Quad.json +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/WebMercatorQuad.json +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/WorldCRS84Quad.json +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/data/WorldMercatorWGS84Quad.json +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/defaults.py +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/errors.py +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/py.typed +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/scripts/__init__.py +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/scripts/cli.py +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/morecantile/utils.py +0 -0
- {morecantile-5.2.0 → morecantile-5.2.2}/pyproject.toml +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# tileMatrixSet json documents
|
|
2
2
|
|
|
3
|
-
TileMatrixSet from
|
|
3
|
+
TileMatrixSet from https://schemas.opengis.net/tms/2.0/json/examples/tilematrixset/
|
|
4
4
|
|
|
5
5
|
`NZTM2000` and `LINZAntarticaMapTilegrid` are from GDAL https://github.com/OSGeo/gdal/pull/2505/files#diff-33251b8c7db3e78835102ded8d11d851
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
2
|
+
"id": "WGS1984Quad",
|
|
3
3
|
"title": "EPSG:4326 for the World",
|
|
4
4
|
"uri": "http://www.opengis.net/def/tilematrixset/OGC/1.0/WorldCRS84Quad",
|
|
5
5
|
"crs": "http://www.opengis.net/def/crs/EPSG/0/4326",
|
|
@@ -322,4 +322,4 @@
|
|
|
322
322
|
"matrixHeight": 8388608
|
|
323
323
|
}
|
|
324
324
|
]
|
|
325
|
-
}
|
|
325
|
+
}
|
|
@@ -64,15 +64,12 @@ class CRSUri(BaseModel):
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
class CRSWKT(BaseModel):
|
|
67
|
-
"""Coordinate Reference System (CRS) from WKT."""
|
|
67
|
+
"""Coordinate Reference System (CRS) from WKT encoded as PROJJSON Object."""
|
|
68
68
|
|
|
69
69
|
wkt: Annotated[
|
|
70
|
-
|
|
70
|
+
Dict,
|
|
71
71
|
Field(
|
|
72
|
-
description="
|
|
73
|
-
examples=[
|
|
74
|
-
'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]',
|
|
75
|
-
],
|
|
72
|
+
description="An object defining the CRS using the JSON encoding for Well-known text representation of coordinate reference systems 2.0",
|
|
76
73
|
),
|
|
77
74
|
]
|
|
78
75
|
|
|
@@ -109,7 +106,7 @@ class CRS(RootModel[Union[str, Union[CRSUri, CRSWKT, CRSRef]]]):
|
|
|
109
106
|
self._pyproj_crs = pyproj.CRS.from_user_input(str(self.root.uri))
|
|
110
107
|
|
|
111
108
|
elif isinstance(self.root, CRSWKT):
|
|
112
|
-
self._pyproj_crs = pyproj.CRS.
|
|
109
|
+
self._pyproj_crs = pyproj.CRS.from_json_dict(self.root.wkt)
|
|
113
110
|
|
|
114
111
|
elif isinstance(self.root, CRSRef):
|
|
115
112
|
raise NotImplementedError(
|
|
@@ -660,10 +657,10 @@ class TileMatrixSet(BaseModel, arbitrary_types_allowed=True):
|
|
|
660
657
|
try:
|
|
661
658
|
pyproj.CRS.from_user_input(crs_data)
|
|
662
659
|
except CRSError:
|
|
663
|
-
crs_data = {"wkt": crs.
|
|
660
|
+
crs_data = {"wkt": crs.to_json_dict()}
|
|
664
661
|
|
|
665
662
|
else:
|
|
666
|
-
crs_data = {"wkt": crs.
|
|
663
|
+
crs_data = {"wkt": crs.to_json_dict()}
|
|
667
664
|
|
|
668
665
|
return cls(
|
|
669
666
|
crs=crs_data,
|
|
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
|