Skip to content

Commit

Permalink
Merge pull request #274 from cogeotiff/patch/remove-private-method
Browse files Browse the repository at this point in the history
fix issue with deprecated morecantile method
  • Loading branch information
vincentsarago authored Jan 8, 2024
2 parents db8c21f + 5a801dd commit a1849ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## 5.1.1 (2024-01-08)

* use morecantile `TileMatrixSet.cellSize` property instead of deprecated/private `TileMatrixSet._resolution` method

## 5.1.0 (2023-12-11)

* add option to write progress to an external text buffer (author @SellersEvan, https://github.com/cogeotiff/rio-cogeo/pull/273)
Expand Down
2 changes: 1 addition & 1 deletion rio_cogeo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def get_web_optimized_params(
w, _, _, n = tms.xy_bounds(ul_tile)

# The output resolution should match the TMS resolution at MaxZoom
vrt_res = tms._resolution(tms.matrix(max_zoom))
vrt_res = tms.matrix(max_zoom).cellSize

# Output transform is built from the origin (UL tile) and output resolution
vrt_transform = Affine(vrt_res, 0, w, 0, -vrt_res, n)
Expand Down

0 comments on commit a1849ec

Please sign in to comment.