Skip to content

Commit

Permalink
styling and upadte changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Jan 26, 2024
1 parent 79ec807 commit 09d1647
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,31 @@

* remove `is_tiled` rasterio method and add better test for blockshapes for the validation script (author @sgillies, https://github.com/cogeotiff/rio-cogeo/pull/278)

* Deprecate parameter **web_optimized** of `cogeo.cog_translate` Python function (author @alexismanin, https://github.com/cogeotiff/rio-cogeo/pull/279)

```python
# before
output_profile = cog_profiles.get(profile)

tms = morecantile.tms.get("WGS1984Quad")
cog_translate(
"in.tif",
"out.tif",
output_profile,
web_optimzed=True,
tms=tms
)

# now
tms = morecantile.tms.get("WGS1984Quad")
cog_translate(
"in.tif",
"out.tif",
output_profile,
tms=tms
)
```

## 5.1.1 (2024-01-08)

* use morecantile `TileMatrixSet.cellSize` property instead of deprecated/private `TileMatrixSet._resolution` method
Expand Down
3 changes: 2 additions & 1 deletion rio_cogeo/cogeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ def cog_translate( # noqa: C901
Previously, `tms` usage was conditioned by `web_optimized` state.
The behaviour has changed to allow setting a tile matrix set without the need of `web_optimized` flag.
`web_optimized` now only serve to activate a default `WebMercatorQuad` tile matrix set.
It might be removed in future versions.
Set to be removed 6.0.
"""
if web_optimized:
warnings.warn(
Expand Down
1 change: 1 addition & 0 deletions rio_cogeo/scripts/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def create(
if tms:
with open(tms, "r") as f:
tilematrixset = TileMatrixSet(**json.load(f))

elif web_optimized:
tilematrixset = morecantile.tms.get("WebMercatorQuad")

Expand Down

0 comments on commit 09d1647

Please sign in to comment.