Bug report #20882
SAGA Resampling tool does not work
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Giovanni Manghi | ||
Category: | Processing/SAGA | ||
Affected QGIS version: | 3.4.3 | Regression?: | No |
Operating System: | Win10 | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 28701 |
Description
I am trying to resample a satellite image from 20 m to 10 m pixel resolution using the SAGA Resample tool. I think it worked in previous versions but it does not now seem to work in the current version. See log from message panel below.
2018-12-26T06:57:02 INFO SAGA execution commands
io_gdal 0 -TRANSFORM 1 -RESAMPLING 3 -GRIDS "C:/Users/Grant/AppData/Local/Temp/processing_9e2133c21be64013922ecfb876c1fe72/052de5d773474638a15e04e332eade0a/S2AArgyleB12.sgrd" -FILES "F:/QGIS/Workshops/Workshop/ProjectFiles/SatelliteData/S2A_Argyle_B12.jp2"
grid_tools "Resampling" -TARGET_DEFINITION 0 -INPUT "C:/Users/Grant/AppData/Local/Temp/processing_9e2133c21be64013922ecfb876c1fe72/052de5d773474638a15e04e332eade0a/S2AArgyleB12.sgrd" -KEEP_TYPE true -SCALE_UP 1 -SCALE_DOWN 1 -TARGET_USER_SIZE 10.0 -TARGET_USER_FITS 1 -OUTPUT "C:/Users/Grant/AppData/Local/Temp/processing_9e2133c21be64013922ecfb876c1fe72/859895bf902a471ba9c05958e9d22d8d/OUTPUT.sdat"
2018-12-26T06:57:11 INFO SAGA execution console output
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\grass\grass-7.4.2\lib;C:\PROGRA~1\QGIS3~1.4\apps\grass\grass-7.4.2\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/Grant/AppData/Local/Temp/processing_9e2133c21be64013922ecfb876c1fe72/052de5d773474638a15e04e332eade0a/S2AArgyleB12.sgrd" -FILES "F:/QGIS/Workshops/Workshop/ProjectFiles/SatelliteData/S2A_Argyle_B12.jp2"
Error: select a library
____________________
- ## ##### ##
- ### ## ###
- # ## ## #### # ##
- ##### ## # #####
- # ## ##### # ##
____________________
- # ## ##### # ##
SAGA Version: 2.3.2 (64 bit)
68 loaded tool libraries (630 tools):
- climate_tools
- contrib_perego
- db_odbc
- db_pgsql
- docs_html
- garden_3d_viewer
- garden_fractals
- garden_games
- garden_learn_to_program
- garden_webservices
- grid_analysis
- grid_calculus
- grid_calculus_bsl
- grid_filter
- grid_gridding
- grid_spline
- grid_tools
- grid_visualisation
- imagery_classification
- imagery_isocluster
- imagery_maxent
- imagery_photogrammetry
- imagery_segmentation
- imagery_svm
- imagery_tools
- io_esri_e00
- io_gps
- io_grid
- io_grid_image
- io_shapes
- io_shapes_dxf
- io_table
- io_virtual
- pj_georeference
- pj_geotrans
- pj_proj4
- pointcloud_tools
- pointcloud_viewer
- shapes_grid
- shapes_lines
- shapes_points
- shapes_polygons
- shapes_tools
- shapes_transect
- sim_cellular_automata
- sim_ecosystems_hugget
- sim_erosion
- sim_fire_spreading
- sim_hydrology
- sim_ihacres
- sim_qm_of_esp
- sim_rivflow
- statistics_grid
- statistics_kriging
- statistics_points
- statistics_regression
- ta_channels
- ta_compound
- ta_hydrology
- ta_lighting
- ta_morphometry
- ta_preprocessor
- ta_profiles
- ta_slope_stability
- table_calculus
- table_tools
- tin_tools
- tin_viewer
type -h or --help for further information
C:\PROGRA~1\QGIS3~1.4\bin>saga_cmd grid_tools "Resampling" -TARGET_DEFINITION 0 -INPUT "C:/Users/Grant/AppData/Local/Temp/processing_9e2133c21be64013922ecfb876c1fe72/052de5d773474638a15e04e332eade0a/S2AArgyleB12.sgrd" -KEEP_TYPE true -SCALE_UP 1 -SCALE_DOWN 1 -TARGET_USER_SIZE 10.0 -TARGET_USER_FITS 1 -OUTPUT "C:/Users/Grant/AppData/Local/Temp/processing_9e2133c21be64013922ecfb876c1fe72/859895bf902a471ba9c05958e9d22d8d/OUTPUT.sdat"
Error: executing tool [Resampling]
____________________
- ## ##### ##
- ### ## ###
- # ## ## #### # ##
- ##### ## # #####
- # ## ##### # ##
____________________
- # ## ##### # ##
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 : Resampling
author : O.Conrad (c) 2003
processors : 8 [8]
____________________
Load grid: C:/Users/Grant/AppData/Local/Temp/processing_9e2133c21be64013922ecfb876c1fe72/052de5d773474638a15e04e332eade0a/S2AArgyleB12.sgrd...
failed
Resampling: could not initialize data objects
C:\PROGRA~1\QGIS3~1.4\bin>exit
Associated revisions
[processing][SAGA] Resync parameters for resample tool
And add tests
Fixes #20882
(cherry picked from commit 45f8b863dbe7f238270a70c4860b24355dd9968f)
History
#1 Updated by Giovanni Manghi almost 6 years ago
- Assignee set to Giovanni Manghi
- Subject changed from Problem with SAGA Resample Tool to SAGA Resampling tool does not work
Is also broken on 2.18
#2 Updated by Nyall Dawson almost 6 years ago
- % Done changed from 0 to 100
- Status changed from Open to Closed
Applied in changeset qgis|45f8b863dbe7f238270a70c4860b24355dd9968f.