@@ -427,17 +427,17 @@ def processOutputs(self):
427
427
self .commands .append (command )
428
428
self .outputCommands .append (command )
429
429
430
- command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
430
+ command = 'r.out.gdal --overwrite - c createopt="TFW=YES,COMPRESS=LZW"'
431
431
command += ' input='
432
432
command += 'correctedoutput' + self .uniqueSufix
433
433
command += ' output="' + filename + '"'
434
434
elif self .grass7Name == 'r.composite' :
435
- command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
435
+ command = 'r.out.gdal --overwrite - c createopt="TFW=YES,COMPRESS=LZW"'
436
436
command += ' input='
437
437
command += 'correctedoutput' + self .uniqueSufix
438
438
command += ' output="' + filename + '"'
439
439
else :
440
- command = 'r.out.gdal -c createopt="TFW=YES,COMPRESS=LZW"'
440
+ command = 'r.out.gdal --overwrite - c createopt="TFW=YES,COMPRESS=LZW"'
441
441
command += ' input='
442
442
443
443
if self .grass7Name == 'r.horizon' :
@@ -475,6 +475,7 @@ def processOutputs(self):
475
475
command += ' output="' + os .path .dirname (out .value ) + '"'
476
476
command += ' format=ESRI_Shapefile'
477
477
command += ' output_layer=' + os .path .basename (out .value )[:- 4 ]
478
+ command += ' --overwrite'
478
479
self .commands .append (command )
479
480
self .outputCommands .append (command )
480
481
0 commit comments