[gdal-dev] With Python bindings, should geometry objects created by ogr.Geometry() be explicitly destroyed?
Even Rouault
even.rouault at mines-paris.org
Sat Sep 18 07:13:28 EDT 2010
Le vendredi 17 septembre 2010 21:17:06, Jason Roberts a écrit :
> (Just a side note: Another way that the GDAL Python bindings differ from
> typical Python libraries is the need to call gdal.UseExceptions() to have
> exceptions be raised when errors occur,
Backward compatibility issue. Some existing code doesn't expect exceptions to
be thrown.
> and the need to explicitly call
> gdal.ErrorReset() in the exception handler, or the same error will keep
> occurring on subsequent GDAL API calls.)
Was indeed a bug known as http://trac.osgeo.org/gdal/ticket/3077. I've just
fixed it.
More information about the gdal-dev
mailing list