Skip to content

Commit 2a9095d

Browse files
committedMay 26, 2017
processing: with GDAL2 we need to check for raster capability to get the
raster extensions (fixes #16621; followup 3d3b6ec)
1 parent cd7dfda commit 2a9095d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎python/plugins/processing/algs/gdal/GdalUtils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ def getSupportedRasters():
126126
driver = gdal.GetDriver(i)
127127
if driver is None:
128128
continue
129+
if GdalUtils.version() >= 2000000 and 'DCAP_RASTER' not in driver.GetMetadata_Dict():
130+
continue
129131
shortName = driver.ShortName
130132
metadata = driver.GetMetadata()
131133
#===================================================================

0 commit comments

Comments
 (0)
Please sign in to comment.