Rio-cogeo

Latest version: v5.3.2

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

Scan your dependencies

Page 2 of 12

5.0.0

* update `morecantile` requirement to `>=5.0,<6.0` (author mentaljam, https://github.com/cogeotiff/rio-cogeo/pull/267)
* update `pydantic` requirement to `~=2.0` (author mentaljam, https://github.com/cogeotiff/rio-cogeo/pull/267)
* fix `pydantic` deprecation warnings (author mentaljam, https://github.com/cogeotiff/rio-cogeo/pull/267)
* replace `BaseModel.json` with `BaseModel.model_dump_json`
* replace `BaseModel.dict` with `BaseModel.model_dump`
* replace `class Config` with `model_config` class variables

4.0.1

* limit pydantic requirement to `~=1.0``

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

Page 2 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.