Skip to content

Commit

Permalink
processing: with GDAL2 we need to check for raster capability to get the
Browse files Browse the repository at this point in the history
raster extensions (fixes #16621; followup 3d3b6ec)
  • Loading branch information
jef-n committed May 26, 2017
1 parent cd7dfda commit 2a9095d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/gdal/GdalUtils.py
Expand Up @@ -126,6 +126,8 @@ def getSupportedRasters():
driver = gdal.GetDriver(i)
if driver is None:
continue
if GdalUtils.version() >= 2000000 and 'DCAP_RASTER' not in driver.GetMetadata_Dict():
continue
shortName = driver.ShortName
metadata = driver.GetMetadata()
#===================================================================
Expand Down

0 comments on commit 2a9095d

Please sign in to comment.