Bug report #20698

Processing: saga patch does not run successfully (Unknown option 'INTERPOLATION')

Added by Alister Hood over 5 years ago. Updated over 5 years ago.

Status:Closed
Priority:High
Assignee:Nyall Dawson
Category:Processing/SAGA
Affected QGIS version:3.4.2 Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:28518

Description

Tested using 3.4.2 (Windows 64bit standalone).
In 2.18.23 this module works - it seems that there it is using RESAMPLING rather than INTERPOLATION.

Processing algorithm…
Algorithm 'Patching' starting…
Input parameters:
{ 'ADDITIONAL' : 'C:/Users/alistair/AppData/Local/Temp/processingde45c68dc6df4548bc0c84a5f3c7c8c9/9c5764e1b1514458ad7d92b4391605b2/OUTPUT.tif', 'COMPLETED' : 'C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/98702465ef4740919bf01e1c201bb0cf/COMPLETED.sdat', 'INTERPOLATION' : 0, 'ORIGINAL' : 'C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/12a1605c962a43bb97bdddaa24872fb2/output.tif' }

io_gdal 0 -TRANSFORM 1 -RESAMPLING 3 -GRIDS "C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/a81677b121de469f87598e4ef7400093/patched.sgrd" -FILES "C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/12a1605c962a43bb97bdddaa24872fb2/output.tif" 
io_gdal 0 -TRANSFORM 1 -RESAMPLING 3 -GRIDS "C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/e530594a48964f4ea6cfe61e50285f76/OUTPUT.sgrd" -FILES "C:/Users/alistair/AppData/Local/Temp/processingde45c68dc6df4548bc0c84a5f3c7c8c9/9c5764e1b1514458ad7d92b4391605b2/OUTPUT.tif" 
grid_tools "Patching" -ORIGINAL "C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/a81677b121de469f87598e4ef7400093/patched.sgrd" -ADDITIONAL "C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/e530594a48964f4ea6cfe61e50285f76/OUTPUT.sgrd" -INTERPOLATION 0 -COMPLETED "C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/98702465ef4740919bf01e1c201bb0cf/COMPLETED.sdat" 

C:\PROGRA~1\QGIS3~1.4\bin>set SAGA=C:/PROGRA~1/QGIS3~1.4/apps\saga-ltr

C:\PROGRA~1\QGIS3~1.4\bin>set SAGA_MLB=C:/PROGRA~1/QGIS3~1.4/apps\saga-ltr\modules

C:\PROGRA~1\QGIS3~1.4\bin>PATH=C:\PROGRA~1\QGIS3~1.4\apps\qgis\bin;C:\PROGRA~1\QGIS3~1.4\apps\Python37;C:\PROGRA~1\QGIS3~1.4\apps\Python37\Scripts;C:\PROGRA~1\QGIS3~1.4\apps\qt5\bin;C:\PROGRA~1\QGIS3~1.4\apps\Python27\Scripts;C:\PROGRA~1\QGIS3~1.4\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\pywin32_system32;C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\numpy\.libs;C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\site-packages\scipy\extra-dll;;C:/PROGRA~1/QGIS3~1.4/apps\saga-ltr;C:/PROGRA~1/QGIS3~1.4/apps\saga-ltr\modules

C:\PROGRA~1\QGIS3~1.4\bin>saga_cmd io_gdal 0 -TRANSFORM 1 -RESAMPLING 3 -GRIDS "C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/a81677b121de469f87598e4ef7400093/patched.sgrd" -FILES "C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/12a1605c962a43bb97bdddaa24872fb2/output.tif" 

C:\PROGRA~1\QGIS3~1.4\bin>saga_cmd io_gdal 0 -TRANSFORM 1 -RESAMPLING 3 -GRIDS "C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/e530594a48964f4ea6cfe61e50285f76/OUTPUT.sgrd" -FILES "C:/Users/alistair/AppData/Local/Temp/processingde45c68dc6df4548bc0c84a5f3c7c8c9/9c5764e1b1514458ad7d92b4391605b2/OUTPUT.tif" 
____________________________

##### ## ##### ##
### ### ## ###
### # ## ## #### # ##
### ##### ## # #####
##### # ## ##### # ##
____________________________

SAGA Version: 2.3.2 (64 bit)

____________________________
library path: C:\PROGRA~1\QGIS3~1.4\apps\saga-ltr\modules\
library name: io_gdal
library : GDAL/OGR
tool : Import Raster
author : O.Conrad (c) 2007 (A.Ringeler)
processors : 8 [8]
____________________________

Parameters

Grids: No objects
Files: "C:/Users/alistair/AppData/Local/Temp/processingde45c68dc6df4548bc0c84a5f3c7c8c9/9c5764e1b1514458ad7d92b4391605b2/OUTPUT.tif" 
Select from Multiple Bands:
Alphanumeric Sorting: yes
Transformation: yes
Resampling: B-Spline Interpolation

loading: C:/Users/alistair/AppData/Local/Temp/processingde45c68dc6df4548bc0c84a5f3c7c8c9/9c5764e1b1514458ad7d92b4391605b2/OUTPUT.tif

Driver: GTiff

Bands: 1

Rows: 9467

Columns: 3546

loading: OUTPUT

C:\PROGRA~1\QGIS3~1.4\bin>saga_cmd grid_tools "Patching" -ORIGINAL "C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/a81677b121de469f87598e4ef7400093/patched.sgrd" -ADDITIONAL "C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/e530594a48964f4ea6cfe61e50285f76/OUTPUT.sgrd" -INTERPOLATION 0 -COMPLETED "C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/98702465ef4740919bf01e1c201bb0cf/COMPLETED.sdat" 
Unknown option 'INTERPOLATION'
____________________________

##### ## ##### ##
### ### ## ###
### # ## ## #### # ##
### ##### ## # #####
##### # ## ##### # ##
____________________________

SAGA Version: 2.3.2 (64 bit)

____________________________
library path: C:\PROGRA~1\QGIS3~1.4\apps\saga-ltr\modules\
library name: grid_tools
library : Tools
tool : Patching
author : O.Conrad (c) 2003
processors : 8 [8]
____________________________

Usage: saga_cmd grid_tools 5 [-ORIGINAL <str>] [-ADDITIONAL <str>] [-COMPLETED <str>] [-RESAMPLING <str>]
-ORIGINAL:<str> Grid
Grid (input)
-ADDITIONAL:<str> Patch Grid
Grid (input)
-COMPLETED:<str> Completed Grid
Grid (output)
-RESAMPLING:<str> Resampling
Choice
Available Choices:
[0] Nearest Neighbour
[1] Bilinear Interpolation
[2] Bicubic Spline Interpolation
[3] B-Spline Interpolation
Default: 3

C:\PROGRA~1\QGIS3~1.4\bin>exit
Execution completed in 46.66 seconds
Results:
{'COMPLETED': 'C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/98702465ef4740919bf01e1c201bb0cf/COMPLETED.sdat'}

Loading resulting layers
The following layers were not correctly generated.<ul><li>C:/Users/alistair/AppData/Local/Temp/processing_9b5f06d44f0c44a181916679447c132c/98702465ef4740919bf01e1c201bb0cf/COMPLETED.sdat</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.

Associated revisions

Revision 455e04ea
Added by Nyall Dawson over 5 years ago

[processing][SAGA] Fix definition of Patching algorithm

And add unit test

Fixes #20698

Revision ee25bb40
Added by Nyall Dawson over 5 years ago

[processing][SAGA] Fix definition of Patching algorithm

And add unit test

Fixes #20698

(cherry picked from commit 455e04ea660e028c4c03024786b8f707f7b09526)

History

#1 Updated by Nyall Dawson over 5 years ago

  • Assignee set to Nyall Dawson
  • Status changed from Open to In Progress

#2 Updated by Nyall Dawson over 5 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

Also available in: Atom PDF