Skip to content

Commit 2bd0304

Browse files
committed
fix issue with deprecated morecantile method
1 parent 3c17f83 commit 2bd0304

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Release Notes
22

3+
## 0.16.1 (2024-01-08)
4+
5+
### titiler.core
6+
7+
* use morecantile `TileMatrixSet.cellSize` property instead of deprecated/private `TileMatrixSet._resolution` method
8+
9+
### titiler.mosaic
10+
11+
* use morecantile `TileMatrixSet.cellSize` property instead of deprecated/private `TileMatrixSet._resolution` method
12+
313
## 0.16.0 (2024-01-08)
414

515
### titiler.core

src/titiler/core/titiler/core/factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ def map_viewer(
740740
"request": request,
741741
"tilejson_endpoint": tilejson_url,
742742
"tms": tms,
743-
"resolutions": [tms._resolution(matrix) for matrix in tms],
743+
"resolutions": [matrix.cellSize for matrix in tms],
744744
},
745745
media_type="text/html",
746746
)

src/titiler/mosaic/titiler/mosaic/factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def map_viewer(
505505
"request": request,
506506
"tilejson_endpoint": tilejson_url,
507507
"tms": tms,
508-
"resolutions": [tms._resolution(matrix) for matrix in tms],
508+
"resolutions": [matrix.cellSize for matrix in tms],
509509
},
510510
media_type="text/html",
511511
)

0 commit comments

Comments
 (0)