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 2e67885 commit 177f2c8aea0c844e4973563b185f458ab2347712
Showing with 0 additions and 9 deletions.
  1. +0 −9 python/plugins/processing/core/parameters.py
@@ -105,17 +105,11 @@ 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
@@ -138,9 +132,6 @@ 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 177f2c8

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