[GIS] “RasterioIOError: This is a BigTIFF file. BigTIFF is not supported by this version of GDAL and libtiff” error message

bigtiffgdalpythonrasterio

I am trying to read a raster ".tif" file with rasterio:

import rasterio
raster_path = r'.........\file.tif'
raster = rasterio.open(raster_path)

but I am getting the following error message:

"RasterioIOError: This is a BigTIFF file.  BigTIFF is not supported by this version of GDAL and libtiff"

Apparently, the raster file I am trying to open with rasterio is a BIGTIFF (which I had no idea about since I cannot see anything in the properties of the file when being opened with ArcMap that suggests such a thing, plus it's not a particularly big file -less than 1GB-).

I have seen similar questions posted here more than a year ago, but they don't really offer any solution.

I have:

GDAL     =>  2.4.1
libtiff  =>  4.0.10
rasterio =>  1.0.21

Best Answer

I managed to get this to work on Windows with Anaconda following these steps:

I first downloaded whl files for Gdal and Rasterio as suggested on the rasterio page (e.g. from here for rasterio). I chose files for python 3.7 as I already had this combination working for big tiffs on a Linux platform.

Then in Anaconda:

conda create -n w1 python=3.7
conda activate w1
pip install GDAL-3.2.2-cp37-cp37m-win_amd64.whl
pip install rasterio-1.2.3-cp37-cp37m-win_amd64.whl