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

Jacky Nguyen jackynguyen.km at gmail.com
Wed Aug 1 02:49:16 PDT 2018


Hi Even,

Ahhh, so the code from the book is a bit outdated. Remove the success flag
works now

Thank you!

Jacky

On Wed, Aug 1, 2018 at 3:57 PM Even Rouault <even.rouault at spatialys.com>
wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180801/9e1b37ad/attachment.html>


More information about the gdal-dev mailing list