We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 4b9c808 commit add40c1Copy full SHA for add40c1
python/plugins/processing/gui/ParameterGuiUtils.py
@@ -47,7 +47,15 @@ def getFileFilter(param):
47
:param param:
48
:return:
49
"""
50
- if param.type() == 'multilayer':
+ if param.type() == 'layer':
51
+ vectors = QgsProviderRegistry.instance().fileVectorFilters().split(';;')
52
+ vectors.pop(0)
53
+ rasters = QgsProviderRegistry.instance().fileRasterFilters().split(';;')
54
+ rasters.pop(0)
55
+ filters = set(vectors + rasters)
56
+ filters = sorted(filters)
57
+ return tr('All files (*.*)') + ';;' + ";;".join(filters)
58
+ elif param.type() == 'multilayer':
59
if param.layerType() == QgsProcessing.TypeRaster:
60
exts = QgsRasterFileWriter.supportedFormatExtensions()
61
elif param.layerType() == QgsProcessing.TypeFile:
0 commit comments