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 3217442 commit 2e67885c3a99ad7b60f9c306a58309927ef46180
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 2e67885

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