Skip to content
Permalink
Browse files

[processing] resurrecting some parameters in Modeler

  • Loading branch information
ghtmtt authored and nyalldawson committed May 4, 2018
1 parent 177f2c8 commit b2c0dd96aecd425d1547297be164a7f58b294834
Showing with 9 additions and 0 deletions.
  1. +9 −0 python/plugins/processing/core/parameters.py
@@ -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
@@ -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(';')

0 comments on commit b2c0dd9

Please sign in to comment.
You can’t perform that action at this time.