Skip to content
Permalink
Browse files
[processing] Allow algorithm providers to set the allowed output rast…
…er extensions if needed
  • Loading branch information
Rado Guzinski committed May 26, 2014
1 parent 3799f11 commit a09aa76eadf691b2140fa03bfb15b32c3056e71b
Showing with 7 additions and 1 deletion.
  1. +7 −1 python/plugins/processing/outputs/OutputRaster.py
@@ -35,7 +35,13 @@ class OutputRaster(Output):
compatible = None

def getFileFilter(self, alg):
exts = dataobjects.getSupportedOutputRasterLayerExtensions()
providerExts = alg.provider.getSupportedOutputRasterLayerExtensions()
if providerExts == ['tif']:
# use default extensions
exts = dataobjects.getSupportedOutputRasterLayerExtensions()
else:
# use extensions given by the algorithm provider
exts = providerExts
for i in range(len(exts)):
exts[i] = exts[i].upper() + ' files(*.' + exts[i].lower() + ')'
return ';;'.join(exts)

0 comments on commit a09aa76

Please sign in to comment.