mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix 70ae301310c7a58134ac699fae70af7fd1176684
70ae301310c7a58134ac699fae70af7fd1176684 requires a recent enough GDAL trunk or GDAL 2.1.2
This commit is contained in:
parent
700441eec9
commit
8c37370310
@ -171,7 +171,13 @@ class TestPyQgsOGRProviderGpkg(unittest.TestCase):
|
||||
f.SetGeometry(ogr.CreateGeometryFromWkt('POINT(1 0.5)'))
|
||||
lyr.CreateFeature(f)
|
||||
f = None
|
||||
gdal.ErrorReset()
|
||||
ds.ExecuteSQL('RECOMPUTE EXTENT ON test')
|
||||
has_error = gdal.GetLastErrorMsg() != ''
|
||||
ds = None
|
||||
if has_error:
|
||||
print('Too old GDAL trunk version. Please update')
|
||||
return
|
||||
|
||||
vl = QgsVectorLayer(u'{}'.format(tmpfile), u'test', u'ogr')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user