Skip to content

Commit

Permalink
[processing] resurrecting some parameters in Modeler
Browse files Browse the repository at this point in the history
  • Loading branch information
ghtmtt authored and nyalldawson committed May 4, 2018
1 parent 177f2c8 commit b2c0dd9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/plugins/processing/core/parameters.py
Expand Up @@ -105,11 +105,17 @@ def getParameterFromString(s):
if clazz == QgsProcessingParameterRasterLayer:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
elis clazz == QgsProcessingParameterBand:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
elif clazz == QgsProcessingParameterVectorLayer:
if len(params) > 2:
params[2] = [int(p) for p in params[2].split(';')]
if len(params) > 4:
params[4] = True if params[4].lower() == 'true' else False
elif clazz == QgsProcessingParameterMapLayer:
if len(params) > 3:
params[3[ = True if params[3].lower() == 'true' else False
elif clazz == QgsProcessingParameterBoolean:
if len(params) > 2:
params[2] = True if params[2].lower() == 'true' else False
Expand All @@ -132,6 +138,9 @@ def getParameterFromString(s):
elif clazz == QgsProcessingParameterExtent:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
elif clazz == QgsProcessingParameterExpression:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
elif clazz == QgsProcessingParameterEnum:
if len(params) > 2:
params[2] = params[2].split(';')
Expand Down

0 comments on commit b2c0dd9

Please sign in to comment.