<div dir="ltr">Hi Even,<div><br></div><div>Ahhh, so the code from the book is a bit outdated. Remove the success flag works now</div><div><br></div><div>Thank you!</div><div><br></div><div>Jacky</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Aug 1, 2018 at 3:57 PM Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jacky,<br>
<br>
> t = dataset.GetGeoTransform()<br>
> success,tInverse = gdal.InvGeoTransform(t)<br>
<br>
There's no success flag, so<br>
tInverse = gdal.InvGeoTransform(t)<br>
This will return None in case of failure<br>
<br>
Even<br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
</blockquote></div>