mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[processing] Allow algorithm providers to set the allowed output raster extensions if needed
This commit is contained in:
parent
3799f115b4
commit
a09aa76ead
@ -35,7 +35,13 @@ class OutputRaster(Output):
|
||||
compatible = None
|
||||
|
||||
def getFileFilter(self, alg):
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user