<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Hi SWIG binding users/devs,</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Any opinion on http://trac.osgeo.org/gdal/ticket/4360 ?</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">"""After the changes done in <a href="http://trac.osgeo.org/gdal/changeset/11529"><span style=" text-decoration: underline; color:#0057ae;">http://trac.osgeo.org/gdal/changeset/11529</span></a> / <a href="http://trac.osgeo.org/gdal/ticket/1635"><span style=" text-decoration: underline; color:#0057ae;">http://trac.osgeo.org/gdal/ticket/1635</span></a> , any CE_Failure error emitted by CPLError() in the Open() method of GDAL and OGR drivers, and not cleared, will cause the swig bindings to return a null dataset, even if the driver returned a valid one. </p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Sometimes those errors are not critical, and users regularly complain (last occurrence is <a href="http://lists.osgeo.org/pipermail/gdal-dev/2011-November/030960.html"><span style=" text-decoration: underline; color:#0057ae;"> http://lists.osgeo.org/pipermail/gdal-dev/2011-November/030960.html</span></a> ) that they can open them successfully with C/C++ API, but not from Java/Python/etc, so I'd suggest the following patch that adds a bIgnoreErrors option, that if turned on will reset the error flag in the case discussed here. By default, the new option is not turned on. """</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Best regards,</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Even</p></body></html>