[gdal-dev] RFC 37: User context data in CPLErrorHandler callbacks

Howard Butler hobu.inc at gmail.com
Tue Oct 25 14:07:34 EDT 2011


On Oct 25, 2011, at 11:26 AM, Frank Warmerdam wrote:
>> http://trac.osgeo.org/gdal/wiki/rfc37_cplerror_userdata
> 
> Howard,
> 
> I would like to suggest the the CPLGetLastErrorUserData() be renamed something
> like CPLGetErrorHandlerUserData().  It is *not* returning the user data
> associated with the last error - but instead the user data associated with
> the currently in-force error handler.   I'd also suggest that the functions
> documentation include a note mentioning it is primarily intended for use from
> within error handlers.

Done.

> You also did not address if/how this will be exposed in SWIG languages.

This RFC is not going to address integration of this capability into the usage of error handlers in the SWIG languages, but bindings maintainers are encouraged to consider how this capability could improve error handling within those languages and implement code to take advantage of it accordingly.

Howard 


More information about the gdal-dev mailing list