@@ -359,16 +359,24 @@ def processAlgorithm(self, progress):
359
359
if dontExport :
360
360
continue
361
361
362
- transform = ('' if saga208 else '-TRANSFORM' )
363
- if isWindows () or isMac () or not saga208 :
364
- commands .append ('io_gdal 1 -GRIDS "' + filename2
365
- + '" -FORMAT ' + str (formatIndex )
366
- + ' -TYPE 0 -FILE "' + filename + '"'
367
- + transform )
362
+ if self .cmdname == 'RGB Composite' :
363
+ if isWindows () or isMac () or not saga208 :
364
+ commands .append ('io_grid_image 0 -IS_RGB -GRID:"' + filename2
365
+ + '" -FILE:"' + filename
366
+ + '"' )
367
+ else :
368
+ commands .append ('libio_grid_image 0 -IS_RGB -GRID:"' + filename2
369
+ + '" -FILE:"' + filename
370
+ + '"' )
368
371
else :
369
- commands .append ('libio_gdal 1 -GRIDS "' + filename2
370
- + '" -FORMAT 1 -TYPE 0 -FILE "' + filename
371
- + '"' + transform )
372
+ if isWindows () or isMac () or not saga208 :
373
+ commands .append ('io_gdal 1 -GRIDS "' + filename2
374
+ + '" -FORMAT ' + str (formatIndex )
375
+ + ' -TYPE 0 -FILE "' + filename + '"' )
376
+ else :
377
+ commands .append ('libio_gdal 1 -GRIDS "' + filename2
378
+ + '" -FORMAT 1 -TYPE 0 -FILE "' + filename
379
+ + '"' )
372
380
373
381
# 4: Run SAGA
374
382
commands = self .editCommands (commands )
@@ -463,7 +471,7 @@ def exportRasterLayer(self, source):
463
471
sessionExportedLayers [source ] = destFilename
464
472
saga208 = ProcessingConfig .getSetting (SagaUtils .SAGA_208 )
465
473
if isWindows () or isMac () or not saga208 :
466
- return 'io_gdal 0 -GRIDS "' + destFilename + '" -FILES "' + source \
474
+ return 'io_gdal 0 -TRANSFORM -INTERPOL 0 - GRIDS "' + destFilename + '" -FILES "' + source \
467
475
+ '"'
468
476
else :
469
477
return 'libio_gdal 0 -GRIDS "' + destFilename + '" -FILES "' \
0 commit comments