[processing] fixed issue with saga optimizations

This commit is contained in:
Victor Olaya 2013-09-15 18:45:11 +02:00
parent df257ea917
commit 6058023d99
2 changed files with 4 additions and 2 deletions

View File

@ -171,7 +171,7 @@ class GeoAlgorithm:
lines.append(errstring)
lines.append(errstring.replace("\n", "|"))
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR, lines)
raise GeoAlgorithmExecutionException(str(e))
raise GeoAlgorithmExecutionException(str(e) + "\nSee log for more details")
def runPostExecutionScript(self, progress):

View File

@ -229,7 +229,9 @@ class SagaAlgorithm(GeoAlgorithm):
if param.datatype == ParameterMultipleInput.TYPE_RASTER:
for layerfile in layers:
if not layerfile.endswith("sgrd"):
commands.append(self.exportRasterLayer(layerfile))
exportCommand = self.exportRasterLayer(layerfile)
if exportCommand is not None:
commands.append()
if self.resample:
commands.append(self.resampleRasterLayer(layerfile));
elif param.datatype == ParameterMultipleInput.TYPE_VECTOR_ANY: