@@ -58,22 +58,22 @@ def defineCharacteristics(self):
5858 self .name = 'Raster calculator'
5959 self .cmdname = 'Grid Calculator'
6060 self .undecoratedGroup = "grid_calculus"
61- self .group = SagaGroupNameDecorator .getDecoratedName (self .undecoratedGroup )
62- grids = ParameterRaster (self .GRIDS , 'Input layers' , True )
63- grids .hidden = True
64- self .addParameter (grids )
65- self .addParameter (ParameterMultipleInput (self .XGRIDS , 'Input layers' ,
61+ self .group = SagaGroupNameDecorator .getDecoratedName (self .undecoratedGroup )
62+ self .addParameter (ParameterRaster (self .GRIDS , 'Main input layers' ))
63+ self .addParameter (ParameterMultipleInput (self .XGRIDS , 'Additional layers' ,
6664 ParameterMultipleInput .TYPE_RASTER , False ))
6765 self .addParameter (ParameterString (self .FORMULA , "Formula" ))
6866 self .addOutput (OutputRaster (self .RESULT , "Result" ))
6967
7068
71- def processAlgorithm (self , progress ):
72- xgrids = self .getParameterValue (self .XGRIDS )
73- layers = xgrids .split (';' )
74- grid = layers [0 ]
75- self .setParameterValue (self .GRIDS , grid )
76- xgrids = ";" .join (layers [1 :])
77- if xgrids == "" : xgrids = None
78- self .setParameterValue (self .XGRIDS , xgrids )
79- SagaAlgorithm .processAlgorithm (self , progress )
69+ #===========================================================================
70+ # def processAlgorithm(self, progress):
71+ # xgrids = self.getParameterValue(self.XGRIDS)
72+ # layers = xgrids.split(';')
73+ # grid = layers[0]
74+ # self.setParameterValue(self.GRIDS, grid)
75+ # xgrids = ";".join(layers[1:])
76+ # if xgrids == "": xgrids = None
77+ # self.setParameterValue(self.XGRIDS, xgrids)
78+ # SagaAlgorithm.processAlgorithm(self, progress)
79+ #===========================================================================
0 commit comments