[gdal-dev] Error handlers in Python bindings
lpinner
Luke.Pinner at environment.gov.au
Wed Jul 11 17:42:18 PDT 2012
The python function needs to accept three arguments, error class, error code
and error message.
i.e.
from osgeo import gdal
def f(err_class, err_code, msg):
print err_class, err_code, msg
gdal.PushErrorHandler(f)
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/gdal-dev-Error-handlers-in-Python-bindings-tp4987591p4987809.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
More information about the gdal-dev
mailing list