cogeotiff / rio-cogeo

Cloud Optimized GeoTIFF creation and validation plugin for rasterio
https://cogeotiff.github.io/rio-cogeo/
BSD 3-Clause "New" or "Revised" License
308 stars 42 forks source link

cog drive in cog_translate function enforce creation of overviews #288

Closed lagamura closed 1 week ago

lagamura commented 3 months ago

Combination of overview_level=0 and use_cog_driver produces unexpected behavior. cog_trasnlate(..., overview_level=0, use_cog_driver='True')

The function will enforce the default option which is OVERVIEWS=AUTO (default), even if we declarative set overview_level to zero.

Solution: change the parsing of parameters and consider the case of overview_level = 0.