Skip to content
Permalink
Browse files

Fix 70ae301

70ae301 requires a recent enough GDAL trunk
or GDAL 2.1.2
  • Loading branch information
rouault committed Oct 18, 2016
1 parent 9d316b0 commit 194004b0c3928589125b6af21e8bbaeab4a48227
Showing with 6 additions and 0 deletions.
  1. +6 −0 tests/src/python/test_provider_ogr_gpkg.py
@@ -173,7 +173,13 @@ def testGeopackageExtentUpdate(self):
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')

0 comments on commit 194004b

Please sign in to comment.
You can’t perform that action at this time.