qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.48k stars 2.99k forks source link

SAGA Resampling tool does not work #28701

Closed qgib closed 5 years ago

qgib commented 5 years ago

Author Name: Grant Boxer (@grantboxer) Original Redmine Issue: 20882 Affected QGIS version: 3.4.3 Redmine category:processing/saga Assignee: Giovanni Manghi


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
qgib commented 5 years ago

Author Name: Giovanni Manghi (@gioman)


Is also broken on 2.18


qgib commented 5 years ago

Author Name: Nyall Dawson (@nyalldawson)


Applied in changeset 45f8b863dbe7f238270a70c4860b24355dd9968f.