When running gdal_translate to convert a DSM to Cloud Optimized GeoTIFF (COG), I get the following error:
Output driver `COG' not recognised.
The following format drivers are configured and support output:
Full command:
gdal_translate -of COG -co NUM_THREADS=48 -co BLOCKSIZE=256 -co COMPRESS=DEFLATE -co PREDICTOR=2 -co BIGTIFF=IF_SAFER -co RESAMPLING=NEAREST --config GDAL_CACHEMAX 48.65% --config GDAL_NUM_THREADS 48 /var/www/data/7725ed96-af08-4645-9bc4-656cedd49456/odm_dem/dsm.tif /var/www/data/7725ed96-af08-4645-9bc4-656cedd49456/odm_dem/dsm_cogeo.tif
This used to work fine in a previous container build. After investigating, I found that the image now uses GDAL version 3.0.4 due to a dependency on ubuntugis/ubuntugis-unstable, whereas it previously used GDAL 3.4.3, which includes support for the COG driver.