Skip to content

Commit

Permalink
[processing] fix not initialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Nov 9, 2017
1 parent 1b6b6cd commit dc9f868
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/plugins/processing/algs/saga/SagaAlgorithm.py
Expand Up @@ -143,6 +143,7 @@ def processAlgorithm(self, parameters, context, feedback):

self.preProcessInputs()
extent = None
crs = None

# 1: Export rasters to sgrd and vectors to shp
# Tables must be in dbf format. We check that.
Expand Down Expand Up @@ -272,8 +273,6 @@ def processAlgorithm(self, parameters, context, feedback):
output_layers = []
output_files = {}
for out in self.destinationParameterDefinitions():
# TODO
# command += ' -' + out.name() + ' "' + out.getCompatibleFileName(self) + '"'
filePath = self.parameterAsOutputLayer(parameters, out.name(), context)
if isinstance(out, (QgsProcessingParameterRasterDestination, QgsProcessingParameterVectorDestination)):
output_layers.append(filePath)
Expand Down

0 comments on commit dc9f868

Please sign in to comment.