north-road / qgis-processing-saga-nextgen

GNU General Public License v3.0
22 stars 13 forks source link

Flow Accumulation(one step) analysis #21

Open ARTCON2020 opened 2 years ago

ARTCON2020 commented 2 years ago

QGIS version: 3.22.5-Białowieża QGIS code revision: c2723178 Qt version: 5.15.2 Python version: 3.9.5 GDAL version: 3.4.1 GEOS version: 3.10.2-CAPI-1.16.0 PROJ version: Rel. 8.2.1, January 1st, 2022 PDAL version: 2.3.0 (git-version: 9f35b7) SAGA Next Gen version: 0.0.7 Algorithm started at: 2022-03-25T09:08:14 Algorithm 'Flow accumulation (one step)' starting… Input parameters: { 'DEM' : 'D:/Rekvikvannet/DTM/data/dtm1_33_148_187.tif', 'FLOW_ROUTING' : 0, 'PREPROCESSING' : 1, 'SCA' : 'TEMPORARY_OUTPUT', 'TCA' : 'TEMPORARY_OUTPUT' }

toolchains_terrain_analysis "Flow Accumulation (One Step)" -DEM "C:/Users/azmtas01/AppData/Local/Temp/processing_FavOWt/0df5c372d1e44f00867a6aa4d559b72e/dtm133148187.sgrd" -PREPROCESSING 1 -FLOW_ROUTING 0 -TCA "C:/Users/azmtas01/AppData/Local/Temp/processing_FavOWt/5f39c85f20254deebea1d8a81a0172b6/TCA.sdat" -SCA "C:/Users/azmtas01/AppData/Local/Temp/processing_FavOWt/f4f07bea7d374a29b431cf5e7a99d8d2/SCA.sdat"

C:\Users\Administrator\Documents>set SAGA=C:/OSGeo4W/apps\saga

C:\Users\Administrator\Documents>set SAGA_MLB=C:/OSGeo4W/apps\saga\modules

C:\Users\Administrator\Documents>PATH=C:\OSGeo4W\apps\qgis-ltr\bin;C:\OSGeo4W\apps\grass\grass78\lib;C:\OSGeo4W\apps\grass\grass78\bin;C:\OSGeo4W\apps\qt5\bin;C:\OSGeo4W\apps\Python39\Scripts;C:\OSGeo4W\bin;C:\windows\system32;C:\windows;C:\windows\system32\WBem;C:/OSGeo4W/apps\saga;C:/OSGeo4W/apps\saga\modules

C:\Users\Administrator\Documents>saga_cmd toolchains_terrain_analysis "Flow Accumulation (One Step)" -DEM "C:/Users/azmtas01/AppData/Local/Temp/processing_FavOWt/0df5c372d1e44f00867a6aa4d559b72e/dtm133148187.sgrd" -PREPROCESSING 1 -FLOW_ROUTING 0 -TCA "C:/Users/azmtas01/AppData/Local/Temp/processing_FavOWt/5f39c85f20254deebea1d8a81a0172b6/TCA.sdat" -SCA "C:/Users/azmtas01/AppData/Local/Temp/processing_FavOWt/f4f07bea7d374a29b431cf5e7a99d8d2/SCA.sdat"



SAGA Version: 7.8.2 (64 bit)

89 loaded tool libraries (789 tools):

*) tool chain libraries

Error: select a library type -h or --help for further information

C:\Users\Administrator\Documents>exit Execution completed in 6.10 seconds Results: {'SCA': 'C:/Users/azmtas01/AppData/Local/Temp/processing_FavOWt/f4f07bea7d374a29b431cf5e7a99d8d2/SCA.sdat', 'TCA': 'C:/Users/azmtas01/AppData/Local/Temp/processing_FavOWt/5f39c85f20254deebea1d8a81a0172b6/TCA.sdat'}

Loading resulting layers The following layers were not correctly generated. • C:/Users/azmtas01/AppData/Local/Temp/processing_FavOWt/5f39c85f20254deebea1d8a81a0172b6/TCA.sdat • C:/Users/azmtas01/AppData/Local/Temp/processing_FavOWt/f4f07bea7d374a29b431cf5e7a99d8d2/SCA.sdat You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm QGIS3 22 5 .

disarticulate commented 1 year ago

description should be:

Flow Accumulation (One Step) // subcommand name
terrain_analysis // command name
QgsProcessingParameterRasterLayer|DEM|Elevation|None|False
QgsProcessingParameterRasterDestination|TCA|Flow Accumulation
QgsProcessingParameterRasterDestination|SCA|Specific Catchment Area
QgsProcessingParameterEnum|PREPROCESSING|Preprocessing|[0] Fill Sinks (Wang & Liu);[1] Sink Removal|False|1
QgsProcessingParameterEnum|FLOW_ROUTING|Flow Routing|[0] Deterministic 8;[1] Rho 8;[2] Braunschweiger Reliefmodell;[3] Deterministic Infinity;[4] Multiple Flow Direction;[5] Multiple Triangular Flow Direction;[6] Multiple Maximum Downslope Gradient Based Flow Direction|False|4

will submit a pull request. I think multiple terrain_analysis descriptions are affected. Looks like it's just confusion about how the descriptions are used to implement the processing gui then cli run.