[gdal-dev] Cannot call InvGeoTransform due to too many values to unpack

Even Rouault even.rouault at spatialys.com
Wed Aug 1 00:57:54 PDT 2018


Jacky,

> t = dataset.GetGeoTransform()
> success,tInverse = gdal.InvGeoTransform(t)

There's no success flag, so
tInverse = gdal.InvGeoTransform(t)
This will return None in case of failure

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list