geotiffinfo function in Matlab show different geotiff info from GeoTIFF images.

I use gdal library for read images info.

How to load GeoTIFF info by gdal2 like Matlab geotiffinfo function?

  • Do you mean that it should be done with c++? What have you tried so far?
    – user30184
    Commented Oct 25, 2016 at 12:24

1 Answer 1


To retrieve information about a GeoTiff, GDAL provides three basic tools.

The first is using the 'gdalinfo' utility, called from the commandline (doc here).

If you don't want to use the commandline, but need that same information, as of GDAL 2.1 the C interface has the function GDALInfo (doc here).

The third option, which is probably least-desirable, is to individually query each property through the Get* functions of GDALDataset.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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