On 10/21/2010 04:58 AM, Pinner, Luke wrote:
OGR doesn't raise an exception on attempting to open a non-existant
dataset even if ogr.UseExceptions() has been called, GDAL does though.
Is this intentional or a bug?
Luke,
It is a (bit annoying feature admittedly) feature. If none of the
avai
OGR doesn't raise an exception on attempting to open a non-existant
dataset even if ogr.UseExceptions() has been called, GDAL does though.
Is this intentional or a bug?
GDAL version = 1.7.2
from osgeo import gdal,ogr
gdal.UseExceptions()
ogr.UseExceptions()
ds=ogr.Open('foo')
#No exception raised