Would be glad if someone helps me do this. I'm trying to convert a raster .tif file to a .shp file for some analysis. I'm using a 1.5GB data file and have installed GDAL using Conda. But if I run the code it says the following error:

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

What should I do to solve this error? Please explain as I'm totally new to Python environment!

import os
from osgeo import gdal, ogr
import sys
# this allows GDAL to throw Python Exceptions

#  get raster datasource

src_ds = gdal.Open("IND_ppp_2015_v2.tif")
print (src_ds)
  • what is your version of gdal ? By the way, it is unlikely that you will be able to store the result in a shapefile, you should try with another format (e.g. postGIS) – radouxju Jan 16 '18 at 6:36
  • I'm using v2.2.2 GDAL. Is there any specific version I should try? – Srinath Radhakrishnan Jan 16 '18 at 7:00
  • 2
    Your version of gdal is fine, what matyers is your libtiff version (below 4.0 doesn't support bigtiff). Please post your libtiff version (you can find it by doing gdal-config --libs). – Roberto Ribeiro Jan 16 '18 at 9:40
  • the libtiff version im using is 4.0.9 – Srinath Radhakrishnan Jan 16 '18 at 10:18
  • 2

Got it! I updated the library to a newer version and it works now

  • 1
    Could you elaborate? Which library and how? My version of libtiff is also 4.0.9, and latest version i was able to find is 4.0.9... simplesystems.org/libtiff – J.A.Cado Apr 13 '18 at 10:05
  • @J.A.Cado I downloaded the package from conda's environment and then tried. Try googling conda gdal install. I think that's how it worked for me – Srinath Radhakrishnan May 3 '18 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.