Skip to content
Permalink
Browse files

Merge pull request #2771 from medspx/fix_processing_grass_overwrite

[Processing] Fix overwrite for GRASS7 (Redmine #13488)
  • Loading branch information
volaya committed Feb 9, 2016
2 parents 63d9fec + f49dbdc commit 4309b862071f6cfc9a1eb3b7286d932de278e1c5
Showing with 4 additions and 3 deletions.
  1. +4 −3 python/plugins/processing/algs/grass7/Grass7Algorithm.py
@@ -427,17 +427,17 @@ def processOutputs(self):
self.commands.append(command)
self.outputCommands.append(command)

command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
command = 'r.out.gdal --overwrite -c createopt="TFW=YES,COMPRESS=LZW"'
command += ' input='
command += 'correctedoutput' + self.uniqueSufix
command += ' output="' + filename + '"'
elif self.grass7Name == 'r.composite':
command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
command = 'r.out.gdal --overwrite -c createopt="TFW=YES,COMPRESS=LZW"'
command += ' input='
command += 'correctedoutput' + self.uniqueSufix
command += ' output="' + filename + '"'
else:
command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
command = 'r.out.gdal --overwrite -c createopt="TFW=YES,COMPRESS=LZW"'
command += ' input='

if self.grass7Name == 'r.horizon':
@@ -475,6 +475,7 @@ def processOutputs(self):
command += ' output="' + os.path.dirname(out.value) + '"'
command += ' format=ESRI_Shapefile'
command += ' output_layer=' + os.path.basename(out.value)[:-4]
command += ' --overwrite'
self.commands.append(command)
self.outputCommands.append(command)

0 comments on commit 4309b86

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