mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	fixed saga algorithm to adapt it to 2.3 syntax
This commit is contained in:
		
							parent
							
								
									27d5bbbdfe
								
							
						
					
					
						commit
						439b9de98d
					
				@ -212,7 +212,9 @@ class SagaAlgorithm(GeoAlgorithm):
 | 
			
		||||
                command += ' -' + param.name + ' "' + s + '"'
 | 
			
		||||
            elif isinstance(param, ParameterBoolean):
 | 
			
		||||
                if param.value:
 | 
			
		||||
                    command += ' -' + param.name
 | 
			
		||||
                    command += ' -' + param.name.strip() + " true"
 | 
			
		||||
                else:
 | 
			
		||||
                    command += ' -' + param.name.strip() + " false"
 | 
			
		||||
            elif isinstance(param, ParameterFixedTable):
 | 
			
		||||
                tempTableFile = getTempFilename('txt')
 | 
			
		||||
                with open(tempTableFile, 'w') as f:
 | 
			
		||||
@ -325,7 +327,7 @@ class SagaAlgorithm(GeoAlgorithm):
 | 
			
		||||
        destFilename = getTempFilenameInTempFolder(filename + '.sgrd')
 | 
			
		||||
        self.exportedLayers[source] = destFilename
 | 
			
		||||
        sessionExportedLayers[source] = destFilename
 | 
			
		||||
        return 'io_gdal 0 -TRANSFORM -RESAMPLING 0 -GRIDS "' + destFilename + '" -FILES "' + source + '"'
 | 
			
		||||
        return 'io_gdal 0 -TRANSFORM 1 -RESAMPLING 0 -GRIDS "' + destFilename + '" -FILES "' + source + '"'
 | 
			
		||||
 | 
			
		||||
    def checkParameterValuesBeforeExecuting(self):
 | 
			
		||||
        """
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user