morecantile 5.2.2__py3-none-any.whl → 5.2.3__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 +1 -1
- morecantile/models.py +132 -40
- {morecantile-5.2.2.dist-info → morecantile-5.2.3.dist-info}/METADATA +1 -1
- {morecantile-5.2.2.dist-info → morecantile-5.2.3.dist-info}/RECORD +7 -7
- {morecantile-5.2.2.dist-info → morecantile-5.2.3.dist-info}/LICENSE +0 -0
- {morecantile-5.2.2.dist-info → morecantile-5.2.3.dist-info}/WHEEL +0 -0
- {morecantile-5.2.2.dist-info → morecantile-5.2.3.dist-info}/entry_points.txt +0 -0
morecantile/__init__.py
CHANGED
morecantile/models.py
CHANGED
|
@@ -54,11 +54,13 @@ class CRSUri(BaseModel):
|
|
|
54
54
|
uri: Annotated[
|
|
55
55
|
AnyUrl,
|
|
56
56
|
Field(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
json_schema_extra={
|
|
58
|
+
"description": "Reference to one coordinate reference system (CRS) as URI",
|
|
59
|
+
"exemples": [
|
|
60
|
+
"http://www.opengis.net/def/crs/EPSG/0/3978",
|
|
61
|
+
"urn:ogc:def:crs:EPSG::2193",
|
|
62
|
+
],
|
|
63
|
+
}
|
|
62
64
|
),
|
|
63
65
|
]
|
|
64
66
|
|
|
@@ -69,7 +71,9 @@ class CRSWKT(BaseModel):
|
|
|
69
71
|
wkt: Annotated[
|
|
70
72
|
Dict,
|
|
71
73
|
Field(
|
|
72
|
-
|
|
74
|
+
json_schema_extra={
|
|
75
|
+
"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
79
|
|
|
@@ -80,7 +84,9 @@ class CRSRef(BaseModel):
|
|
|
80
84
|
referenceSystem: Annotated[
|
|
81
85
|
Dict[str, Any],
|
|
82
86
|
Field(
|
|
83
|
-
|
|
87
|
+
json_schema_extra={
|
|
88
|
+
"description": "A reference system data structure as defined in the MD_ReferenceSystem of the ISO 19115",
|
|
89
|
+
}
|
|
84
90
|
),
|
|
85
91
|
]
|
|
86
92
|
|
|
@@ -178,19 +184,35 @@ class TMSBoundingBox(BaseModel, arbitrary_types_allowed=True):
|
|
|
178
184
|
|
|
179
185
|
lowerLeft: Annotated[
|
|
180
186
|
BoundsType,
|
|
181
|
-
Field(
|
|
187
|
+
Field(
|
|
188
|
+
json_schema_extra={
|
|
189
|
+
"description": "A 2D Point in the CRS indicated elsewhere",
|
|
190
|
+
}
|
|
191
|
+
),
|
|
182
192
|
]
|
|
183
193
|
upperRight: Annotated[
|
|
184
194
|
BoundsType,
|
|
185
|
-
Field(
|
|
195
|
+
Field(
|
|
196
|
+
json_schema_extra={
|
|
197
|
+
"description": "A 2D Point in the CRS indicated elsewhere",
|
|
198
|
+
}
|
|
199
|
+
),
|
|
186
200
|
]
|
|
187
201
|
crs: Annotated[
|
|
188
202
|
Optional[CRS],
|
|
189
|
-
Field(
|
|
203
|
+
Field(
|
|
204
|
+
json_schema_extra={
|
|
205
|
+
"description": "Coordinate Reference System (CRS)",
|
|
206
|
+
}
|
|
207
|
+
),
|
|
190
208
|
] = None
|
|
191
209
|
orderedAxes: Annotated[
|
|
192
210
|
Optional[axesInfo],
|
|
193
|
-
Field(
|
|
211
|
+
Field(
|
|
212
|
+
json_schema_extra={
|
|
213
|
+
"description": "Ordered list of names of the dimensions defined in the CRS",
|
|
214
|
+
}
|
|
215
|
+
),
|
|
194
216
|
] = None
|
|
195
217
|
|
|
196
218
|
|
|
@@ -205,7 +227,9 @@ class variableMatrixWidth(BaseModel):
|
|
|
205
227
|
Field(
|
|
206
228
|
ge=2,
|
|
207
229
|
multiple_of=1,
|
|
208
|
-
|
|
230
|
+
json_schema_extra={
|
|
231
|
+
"description": "Number of tiles in width that coalesce in a single tile for these rows",
|
|
232
|
+
},
|
|
209
233
|
),
|
|
210
234
|
]
|
|
211
235
|
minTileRow: Annotated[
|
|
@@ -213,7 +237,9 @@ class variableMatrixWidth(BaseModel):
|
|
|
213
237
|
Field(
|
|
214
238
|
ge=0,
|
|
215
239
|
multiple_of=1,
|
|
216
|
-
|
|
240
|
+
json_schema_extra={
|
|
241
|
+
"description": "First tile row where the coalescence factor applies for this tilematrix",
|
|
242
|
+
},
|
|
217
243
|
),
|
|
218
244
|
]
|
|
219
245
|
maxTileRow: Annotated[
|
|
@@ -221,7 +247,9 @@ class variableMatrixWidth(BaseModel):
|
|
|
221
247
|
Field(
|
|
222
248
|
ge=0,
|
|
223
249
|
multiple_of=1,
|
|
224
|
-
|
|
250
|
+
json_schema_extra={
|
|
251
|
+
"description": "Last tile row where the coalescence factor applies for this tilematrix",
|
|
252
|
+
},
|
|
225
253
|
),
|
|
226
254
|
]
|
|
227
255
|
|
|
@@ -237,46 +265,66 @@ class TileMatrix(BaseModel, extra="forbid"):
|
|
|
237
265
|
title: Annotated[
|
|
238
266
|
Optional[str],
|
|
239
267
|
Field(
|
|
240
|
-
|
|
268
|
+
json_schema_extra={
|
|
269
|
+
"description": "Title of this tile matrix, normally used for display to a human",
|
|
270
|
+
}
|
|
241
271
|
),
|
|
242
272
|
] = None
|
|
243
273
|
description: Annotated[
|
|
244
274
|
Optional[str],
|
|
245
275
|
Field(
|
|
246
|
-
|
|
276
|
+
json_schema_extra={
|
|
277
|
+
"description": "Brief narrative description of this tile matrix set, normally available for display to a human",
|
|
278
|
+
}
|
|
247
279
|
),
|
|
248
280
|
] = None
|
|
249
281
|
keywords: Annotated[
|
|
250
282
|
Optional[List[str]],
|
|
251
283
|
Field(
|
|
252
|
-
|
|
284
|
+
json_schema_extra={
|
|
285
|
+
"description": "Unordered list of one or more commonly used or formalized word(s) or phrase(s) used to describe this dataset",
|
|
286
|
+
}
|
|
253
287
|
),
|
|
254
288
|
] = None
|
|
255
289
|
id: Annotated[
|
|
256
290
|
str,
|
|
257
291
|
Field(
|
|
258
292
|
pattern=r"^\-?[0-9]+$",
|
|
259
|
-
|
|
293
|
+
json_schema_extra={
|
|
294
|
+
"description": "Identifier selecting one of the scales defined in the TileMatrixSet and representing the scaleDenominator the tile. Implementation of 'identifier'",
|
|
295
|
+
},
|
|
260
296
|
),
|
|
261
297
|
]
|
|
262
298
|
scaleDenominator: Annotated[
|
|
263
299
|
float,
|
|
264
|
-
Field(
|
|
300
|
+
Field(
|
|
301
|
+
json_schema_extra={
|
|
302
|
+
"description": "Scale denominator of this tile matrix",
|
|
303
|
+
}
|
|
304
|
+
),
|
|
265
305
|
]
|
|
266
306
|
cellSize: Annotated[
|
|
267
307
|
float,
|
|
268
|
-
Field(
|
|
308
|
+
Field(
|
|
309
|
+
json_schema_extra={
|
|
310
|
+
"description": "Cell size of this tile matrix",
|
|
311
|
+
}
|
|
312
|
+
),
|
|
269
313
|
]
|
|
270
314
|
cornerOfOrigin: Annotated[
|
|
271
315
|
Literal["topLeft", "bottomLeft"],
|
|
272
316
|
Field(
|
|
273
|
-
|
|
317
|
+
json_schema_extra={
|
|
318
|
+
"description": "The corner of the tile matrix (_topLeft_ or _bottomLeft_) used as the origin for numbering tile rows and columns. This corner is also a corner of the (0, 0) tile.",
|
|
319
|
+
}
|
|
274
320
|
),
|
|
275
321
|
] = "topLeft"
|
|
276
322
|
pointOfOrigin: Annotated[
|
|
277
323
|
BoundsType,
|
|
278
324
|
Field(
|
|
279
|
-
|
|
325
|
+
json_schema_extra={
|
|
326
|
+
"description": "Precise position in CRS coordinates of the corner of origin (e.g. the top-left corner) for this tile matrix. This position is also a corner of the (0, 0) tile. In previous version, this was 'topLeftCorner' and 'cornerOfOrigin' did not exist.",
|
|
327
|
+
}
|
|
280
328
|
),
|
|
281
329
|
]
|
|
282
330
|
tileWidth: Annotated[
|
|
@@ -284,7 +332,9 @@ class TileMatrix(BaseModel, extra="forbid"):
|
|
|
284
332
|
Field(
|
|
285
333
|
ge=1,
|
|
286
334
|
multiple_of=1,
|
|
287
|
-
|
|
335
|
+
json_schema_extra={
|
|
336
|
+
"description": "Width of each tile of this tile matrix in pixels",
|
|
337
|
+
},
|
|
288
338
|
),
|
|
289
339
|
]
|
|
290
340
|
tileHeight: Annotated[
|
|
@@ -292,7 +342,9 @@ class TileMatrix(BaseModel, extra="forbid"):
|
|
|
292
342
|
Field(
|
|
293
343
|
ge=1,
|
|
294
344
|
multiple_of=1,
|
|
295
|
-
|
|
345
|
+
json_schema_extra={
|
|
346
|
+
"description": "Height of each tile of this tile matrix in pixels",
|
|
347
|
+
},
|
|
296
348
|
),
|
|
297
349
|
]
|
|
298
350
|
matrixWidth: Annotated[
|
|
@@ -300,7 +352,9 @@ class TileMatrix(BaseModel, extra="forbid"):
|
|
|
300
352
|
Field(
|
|
301
353
|
ge=1,
|
|
302
354
|
multiple_of=1,
|
|
303
|
-
|
|
355
|
+
json_schema_extra={
|
|
356
|
+
"description": "Width of the matrix (number of tiles in width)",
|
|
357
|
+
},
|
|
304
358
|
),
|
|
305
359
|
]
|
|
306
360
|
matrixHeight: Annotated[
|
|
@@ -308,12 +362,18 @@ class TileMatrix(BaseModel, extra="forbid"):
|
|
|
308
362
|
Field(
|
|
309
363
|
ge=1,
|
|
310
364
|
multiple_of=1,
|
|
311
|
-
|
|
365
|
+
json_schema_extra={
|
|
366
|
+
"description": "Height of the matrix (number of tiles in height)",
|
|
367
|
+
},
|
|
312
368
|
),
|
|
313
369
|
]
|
|
314
370
|
variableMatrixWidths: Annotated[
|
|
315
371
|
Optional[List[variableMatrixWidth]],
|
|
316
|
-
Field(
|
|
372
|
+
Field(
|
|
373
|
+
json_schema_extra={
|
|
374
|
+
"description": "Describes the rows that has variable matrix width",
|
|
375
|
+
}
|
|
376
|
+
),
|
|
317
377
|
] = None
|
|
318
378
|
|
|
319
379
|
def get_coalesce_factor(self, row: int) -> int:
|
|
@@ -350,51 +410,83 @@ class TileMatrixSet(BaseModel, arbitrary_types_allowed=True):
|
|
|
350
410
|
title: Annotated[
|
|
351
411
|
Optional[str],
|
|
352
412
|
Field(
|
|
353
|
-
|
|
413
|
+
json_schema_extra={
|
|
414
|
+
"description": "Title of this tile matrix set, normally used for display to a human",
|
|
415
|
+
}
|
|
416
|
+
),
|
|
417
|
+
] = None
|
|
418
|
+
description: Annotated[
|
|
419
|
+
Optional[str],
|
|
420
|
+
Field(
|
|
421
|
+
json_schema_extra={
|
|
422
|
+
"description": "Brief narrative description of this tile matrix set, normally available for display to a human",
|
|
423
|
+
}
|
|
354
424
|
),
|
|
355
425
|
] = None
|
|
356
|
-
description: Optional[str] = Field(
|
|
357
|
-
None,
|
|
358
|
-
description="Brief narrative description of this tile matrix set, normally available for display to a human",
|
|
359
|
-
)
|
|
360
426
|
keywords: Annotated[
|
|
361
427
|
Optional[List[str]],
|
|
362
428
|
Field(
|
|
363
|
-
|
|
429
|
+
json_schema_extra={
|
|
430
|
+
"description": "Unordered list of one or more commonly used or formalized word(s) or phrase(s) used to describe this tile matrix set",
|
|
431
|
+
}
|
|
364
432
|
),
|
|
365
433
|
] = None
|
|
366
434
|
id: Annotated[
|
|
367
435
|
Optional[str],
|
|
368
436
|
Field(
|
|
369
437
|
pattern=r"^[\w\d_\-]+$",
|
|
370
|
-
|
|
438
|
+
json_schema_extra={
|
|
439
|
+
"description": "Tile matrix set identifier. Implementation of 'identifier'",
|
|
440
|
+
},
|
|
371
441
|
),
|
|
372
442
|
] = None
|
|
373
443
|
uri: Annotated[
|
|
374
444
|
Optional[str],
|
|
375
|
-
Field(
|
|
445
|
+
Field(
|
|
446
|
+
json_schema_extra={
|
|
447
|
+
"description": "Reference to an official source for this tileMatrixSet",
|
|
448
|
+
}
|
|
449
|
+
),
|
|
376
450
|
] = None
|
|
377
451
|
orderedAxes: Annotated[
|
|
378
452
|
Optional[axesInfo],
|
|
379
|
-
Field(
|
|
453
|
+
Field(
|
|
454
|
+
json_schema_extra={
|
|
455
|
+
"description": "Ordered list of names of the dimensions defined in the CRS",
|
|
456
|
+
}
|
|
457
|
+
),
|
|
380
458
|
] = None
|
|
381
459
|
crs: Annotated[
|
|
382
460
|
CRS,
|
|
383
|
-
Field(
|
|
461
|
+
Field(
|
|
462
|
+
json_schema_extra={
|
|
463
|
+
"description": "Coordinate Reference System (CRS)",
|
|
464
|
+
}
|
|
465
|
+
),
|
|
384
466
|
]
|
|
385
467
|
wellKnownScaleSet: Annotated[
|
|
386
468
|
Optional[AnyHttpUrl],
|
|
387
|
-
Field(
|
|
469
|
+
Field(
|
|
470
|
+
json_schema_extra={
|
|
471
|
+
"description": "Reference to a well-known scale set",
|
|
472
|
+
}
|
|
473
|
+
),
|
|
388
474
|
] = None
|
|
389
475
|
boundingBox: Annotated[
|
|
390
476
|
Optional[TMSBoundingBox],
|
|
391
477
|
Field(
|
|
392
|
-
|
|
478
|
+
json_schema_extra={
|
|
479
|
+
"description": "Minimum bounding rectangle surrounding the tile matrix set, in the supported CRS",
|
|
480
|
+
}
|
|
393
481
|
),
|
|
394
482
|
] = None
|
|
395
483
|
tileMatrices: Annotated[
|
|
396
484
|
List[TileMatrix],
|
|
397
|
-
Field(
|
|
485
|
+
Field(
|
|
486
|
+
json_schema_extra={
|
|
487
|
+
"description": "Describes scale levels and its tile matrices",
|
|
488
|
+
}
|
|
489
|
+
),
|
|
398
490
|
]
|
|
399
491
|
|
|
400
492
|
# Private attributes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
morecantile/__init__.py,sha256=
|
|
1
|
+
morecantile/__init__.py,sha256=wcwgjah4uYI6ix_t1YBpqqfE2dkDhfI18E2cuy4qYMg,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=
|
|
5
|
+
morecantile/models.py,sha256=LssuG3SB5sNSn5JkT_FlRo0hi6U3PCWuQ63jOxo9zms,50806
|
|
6
6
|
morecantile/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
morecantile/utils.py,sha256=J37ixKq_lJC23bqJSAf01mfS-ZEHizvt2uqVE47dPRE,3364
|
|
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=zSE15udt2Mb8IR9XB01gm8k_L65ON4_WAkpcJmQazlI,16859
|
|
24
|
-
morecantile-5.2.
|
|
25
|
-
morecantile-5.2.
|
|
26
|
-
morecantile-5.2.
|
|
27
|
-
morecantile-5.2.
|
|
28
|
-
morecantile-5.2.
|
|
24
|
+
morecantile-5.2.3.dist-info/entry_points.txt,sha256=keoXuYgnX-mdrGWwXIHqEkSZjQK_iAmtmdrtZ3sCT24,59
|
|
25
|
+
morecantile-5.2.3.dist-info/LICENSE,sha256=18IxFIta7rF_RcVSIgLUUd_alyfQ9bGoZKQm5vOarGU,1073
|
|
26
|
+
morecantile-5.2.3.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
27
|
+
morecantile-5.2.3.dist-info/METADATA,sha256=XlcFVU9Hd8h14s_eho6zY5QrECpXHKgk9eQm3czGfK0,6890
|
|
28
|
+
morecantile-5.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|