Rio-cogeo

Latest version: v5.3.0

Safety actively analyzes 630254 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 12

4.0.0

* update morecantile requirement to `>=4.0.0`
* native support for all TileMatrixSet (with respect of the TMS spec 2.0)
* add `--tms` option to specify a path to a TileMatrixSet JSON file
* switch resampling enums to python Literal

**breaking change**

* Web optimization is now done in rio-cogeo instead of GDAL, when using `--web-optimized` and `--use-cog-driver` options

* switch from using `TILING_SCHEME` namespaced tags to simple `TILING_SCHEME_` prefixed metadata

python
before
with rasterio.open("cog_web.tif") as src:
print(src.tags(ns="TILING_SCHEME"))
>>> {
"NAME": "WebMercatorQuad",
"ZOOM_LEVEL": "18",
}

now
with rasterio.open("cog_web.tif") as src:
print(src.tags())
>>> {
"TILING_SCHEME_NAME": "WebMercatorQuad",
"TILING_SCHEME_ZOOM_LEVEL": "18",
}

3.5.2

* Flag GeoTIFFs with invalidated optimizations as invalid COGs (author mplough-kobold, https://github.com/cogeotiff/rio-cogeo/pull/260)

3.5.1

* Use Case-insensitive check for external overviews (author mplough-kobold, https://github.com/cogeotiff/rio-cogeo/pull/252)
* Use destination directory for the temporary file

3.5.0

* add python 3.11 support

**Breaking Changes**

* remove python 3.7 support
* require rasterio >= 1.3.3 (ref: https://github.com/cogeotiff/rio-cogeo/discussions/248)
* COG can be have blocksize (bigger than their `height` or `width`) and be **tiled** even if they are smaller than 512x512

bash
before
rio cogeo create image_51x51.tif cog.tif
rio cogeo info cog.tif --json | jq '.IFD'
>>> [
{
"Level": 0,
"Width": 51,
"Height": 51,
"Blocksize": [
51,
51
],
"Decimation": 0
}
]
rio cogeo info cog.tif --json | jq '.Profile.Tiled'
>>> false

now
rio cogeo create image_51x51.tif cog.tif
rio cogeo info cog.tif --json | jq '.IFD'
>>> [
{
"Level": 0,
"Width": 51,
"Height": 51,
"Blocksize": [
512,
512
],
"Decimation": 0
}
]
rio cogeo info cog.tif --json | jq '.Profile.Tiled'
>>> true

3.4.1

* avoid breaking change for `cog_info()` when previously passing `*kwargs` to `cog_validate`

3.4.0

* add python 3.10 support
* allow forwarding namespaced metadata to output dataset
* set GDAL config for all `info` methods (previously GDAL's configs were only use in the COG validation step)

Page 2 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.