OSGeo / gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
https://gdal.org
Other
4.91k stars 2.55k forks source link

Make the GTiff driver optional #10862

Closed rouault closed 1 month ago

rouault commented 1 month ago

Make it possible to build without TIFF or GeoTIFF support, and disable the GTiff driver with GDAL_ENABLE_DRIVER_GTIFF=OFF

but, in the absence of an explicit value for GDAL_ENABLE_DRIVER_GTIFF, we still enable it by default even if GDAL_BUILD_OPTIONAL_DRIVERS=OFF.

GDAL_ENABLE_DRIVER_GTIFF=OFF also disables the COG driver.

If the GTiff driver is disabled, then TIFF overview building is obviously no longer available. As well as:

I've make it possible to run autotest/cpp/gdal_unit_test without the GTiff driver, but obviously the Python autotest suite will fail miserably without it...

coveralls commented 1 month ago

Coverage Status

coverage: 69.434%. remained the same when pulling 6ca3154303fddc911137ac4ee58999161df6da70 on rouault:gtiff_optional into c0a14a4f878cf8056cfa7af35040f55e683ef12b on OSGeo:master.