north-road / qgis-processing-saga-nextgen Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
I am trying to run the natural-neighbour module in Saga 9.2 and ran into a block, which I assume is due to the size of the shapefile limit:
input is a set of points in gpkg format (about 200 million points)
output desired is a grid of 12000x12000 pixels.
The program (natural neighbour - same for thin plate) first saves the gpkg file into a shapefile into a temp directory.
I note that the program seems to proceed well but stays put at 100% complete and nothing seems to happen, even though the CPU and memory continue to operate - no error message is indicated in the log.
I tried to conver the gpkg file to a shapefile, but QGIS gives an error as the shapefile exceeds 4Gb.
Is there a solution? I wish Natural Neighbour could take multiple input point files, but that does not seem to be possible.
Perhaps I need to break up the problem into smaller grids and join them later... but that is not ideal (edges will need to be smoothed etc).
Perhaps eventually the gridding routines could be improved to handle such large datasets.
Any suggestion welcome.
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
.
At moment I have QGIS 3.12.2 in ubuntu 19.10 but SAGA no is compatible with this version, however I installed the plugin "processing saga nextgen" and still I have problem with the version 7.3 of SAGA
I just installed SAGA 7.2.0 on my Linux Mint 19. But The Qgis Log Messages said:
2020-02-12T14:55:08 CRITICAL Problem with SAGA installation: unsupported SAGA version (found: 7.4.0, required: 7.2.).
2020-02-12T14:55:09 CRITICAL Problem with SAGA installation: unsupported SAGA version (found: 7.4.0, required: 2.3.).
2020-02-12T14:55:09 WARNING Invalid algorithm ID for menu: qgis:creategrid
2020-02-12T14:56:36 CRITICAL Problem with SAGA installation: unsupported SAGA version (found: 7.4.0, required: 2.3.).
2020-02-12T14:56:36 CRITICAL Problem with SAGA installation: unsupported SAGA version (found: 7.4.0, required: 7.2.).
I believe i have install the 7.2.0 version of SAGA:
$ saga_cmd -v
SAGA Version: 7.2.0
I also have set the SAGANG folder to the installation directory.
Any assistance you can provide would be greatly appreciated.
This is a feature request to create a link or a help button in Processing algs window, to have direct access to SAGA documentation
This is likely to cause errors when standard output is processed further; it also happens with --json
:
$ ~/git_repositories2/QGIS/build-8261e0d2/output/bin/qgis_process plugins
Available plugins
(* indicates loaded plugins which implement Processing providers)
* QNEAT3
* valhalla
processing_saga_nextgen
networks
* pcraster_tools
ViewshedAnalysis
* cartography_tools
* network_gt
* wbt_for_qgis
* latlontools
* grassprovider
* processing
$
$ ~/git_repositories2/QGIS/build-8261e0d2/output/bin/qgis_process plugins enable processing_saga_nextgen
Enabling plugin: "processing_saga_nextgen"
['PC_OUT', 'Result', None, 'True']
['PC', 'Point Cloud', None, 'True']
['PC_OUT', 'Colorised Point Cloud', None, 'False']
['THINNED_PC', 'Thinned Points', None, 'False']
['POINTS', 'Points', None, 'False']
['PC_OUT', 'Filtered Points', None, 'True']
['RESULT', 'Thinned Points', None, 'True']
['OUTPUT', 'Output', None, 'True']
['OUT', 'Output', None, 'False']
['POINTS', 'Points', None, 'True']
['TARGET_PC', 'Target', None, 'False']
['PC_OUT', 'Point Cloud Classified', None, 'True']
['POINTS', 'Points', None, 'False']
['POINTS', 'Points', None, 'False']
['PC_OUT', 'Point Cloud', None, 'True']
['PC_OUT', 'Result', None, 'True']
['TARGET_PC', 'Target', None, 'False']
['PC_OUT', 'Point Cloud', None, 'False']
['PC_OUT', 'Merged Point Cloud', None, 'False']
['POINTS', 'Points', None, 'False']
Enabled processing_saga_nextgen (Processing Saga NextGen Provider)
Available plugins
(* indicates enabled plugins which implement Processing providers)
* QNEAT3
* valhalla
* processing_saga_nextgen
networks
* pcraster_tools
ViewshedAnalysis
* cartography_tools
* network_gt
* wbt_for_qgis
* latlontools
* grassprovider
* processing
$
$ ~/git_repositories2/QGIS/build-8261e0d2/output/bin/qgis_process plugins
['PC_OUT', 'Result', None, 'True']
['PC', 'Point Cloud', None, 'True']
['PC_OUT', 'Colorised Point Cloud', None, 'False']
['THINNED_PC', 'Thinned Points', None, 'False']
['POINTS', 'Points', None, 'False']
['PC_OUT', 'Filtered Points', None, 'True']
['RESULT', 'Thinned Points', None, 'True']
['OUTPUT', 'Output', None, 'True']
['OUT', 'Output', None, 'False']
['POINTS', 'Points', None, 'True']
['TARGET_PC', 'Target', None, 'False']
['PC_OUT', 'Point Cloud Classified', None, 'True']
['POINTS', 'Points', None, 'False']
['POINTS', 'Points', None, 'False']
['PC_OUT', 'Point Cloud', None, 'True']
['PC_OUT', 'Result', None, 'True']
['TARGET_PC', 'Target', None, 'False']
['PC_OUT', 'Point Cloud', None, 'False']
['PC_OUT', 'Merged Point Cloud', None, 'False']
['POINTS', 'Points', None, 'False']
Available plugins
(* indicates loaded plugins which implement Processing providers)
* QNEAT3
* valhalla
* processing_saga_nextgen
networks
* pcraster_tools
ViewshedAnalysis
* cartography_tools
* network_gt
* wbt_for_qgis
* latlontools
* grassprovider
* processing
This uses version 1.0.0 of the processing_saga_nextgen plugin and following QGIS build:
$ ~/git_repositories2/QGIS/build-8261e0d2/output/bin/qgis_process --version
QGIS 3.35.0-Master 'Master' (8261e0d2)
QGIS code revision 8261e0d2
Qt version 5.15.3
Python version 3.10.12
GDAL/OGR version 3.8.3
PROJ version 9.3.1
EPSG Registry database version v10.098 (2023-11-24)
GEOS version 3.12.1-CAPI-1.18.1
SQLite version 3.37.2
OS Linux Mint 21.3
And with SAGA at:
$ saga_cmd --version
SAGA Version: 9.3.0
ciao,
I'd like to know if it's possible to add modules that are already present in SAGA.
for example, I'd like to use in QGIS the SAGA modules about slope stability.
Can I add by mysellf this modules or it is necessary to update the plugin?
thank you for your reply and ciao!
stefano
What is the bug or the crash?
In version 3.22 the minimum and maximum options for interval definition in Saga's grid normalization algorithm (formerly raster normalization) are missing. I noticed this both in the old SAGA repository, and in the nofo SAGA Next Gen In version 3.16 these options were present. This makes it impossible to use the algorithm correctly. In version 3.22.13-Białowieża (qgis/QGIS@02ff117) is no longer available, as it was in version 3.16.5-Hannover (qgis/QGIS@58ba7c1).
Steps to reproduce the issue
Activate Processing, Processing Saga NextGen Provider and SAGA GIS provider plugins;
Go to Processing tool box;
Search for Raster Normalization or Grid Normalization;
Open the plugin and check if the minimum and maximum options are available;
In version 3.22.13-Białowieża (qgis/QGIS@02ff117) is no longer available, as it was in version 3.16.5-Hannover (qgis/QGIS@58ba7c1);
Versions
Versão do QGIS
3.22.13-Białowieża
Código da versão do QGIS
qgis/QGIS@02ff117
Versão Qt
5.15.3
Versão do Python
3.9.5
Versão GDAL/OGR
3.6.0
Versão PROJ
9.1.0
Versão da base de dados do registro EPSG
v10.074 (2022-08-01)
Versão GEOS
3.11.1-CAPI-1.17.1
Versão SQLite
3.39.4
Versão PDAL
2.4.3
Versão cliente PostgreSQL
14.3
Versão SpatiaLite
5.0.1
Versão QWT
6.1.6
Versão QScintilla2
2.13.1
Versão OS
Windows 10 Version 2009
Plugins Python ativos
AzimuthDistanceCalculator
2.0.2
batchvectorlayersaver
0.9
dzetsaka
3.70
FreehandRasterGeoreferencer
0.8.3
GroupStats
2.2.5
HCMGIS
21.8.28
ImportPhotos
3.0.3
latlontools
3.6.6
mmqgis
2021.9.10
processing_saga_nextgen
0.0.7
qconsolidate
1.1.0
QPackage
1.5
quick_map_services
0.19.29
shapetools
3.4.4
testadalotes
1.2
treecrown
0.1
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.5
otbprovider
2.12.99
processing
2.12.99
sagaprovider
2.12.99
Supported QGIS version
I'm running a supported QGIS version according to the roadmap.
New profile
I tried with a new QGIS profile
Additional context
No response
AttributeError: type object 'QgsMessageLog' has no attribute 'WARNING'
Traceback (most recent call last):
File "/Users/peter/Library/Application Support/QGIS/QGIS3/profiles/new2/python/plugins/processing_saga_nextgen/processing/provider.py", line 74, in loadAlgorithms
version = SagaUtils.getInstalledVersion(True)
Not sure if anybody encountered this issue with the SAGA installation in QGIS:
After installing SAGA 9.2 using OSGeo4W in windows and activating the Processing SAGA NextGen Provider plugin in QGIS (3.32.2-Lima) the SAGA tools do not show up in the processing toolbox.
I have tried installing an earlier version of SAGA (v 7) and they do show up but I get an error upon executing (in this case Natural Neighbour), indicating I need SAGA >= 9.1.
I noticed that the folder name for the SAGA installation (under C:\Program Files\QGIS 3.32.2\apps) is 'saga' for the version 7, and 'saga9' for the version 9.2 installation.
Changing the name of the folder from 'saga9' to 'saga' and reinstalling the plugin makes the SAGA package visible in the Processing Toolbox.
At every new run of any SAGA algorithm that involves raster layers, it gives no output, because it seems to only run
saga_cmd io_gdal 0
... command
saga_batch_job.bat -> First run
set SAGA=C:/OSGeo4W64/saga-7.2.0_x64
set SAGA_MLB=C:/OSGeo4W64/saga-7.2.0_x64\modules
PATH=%PATH%;%SAGA%;%SAGA_MLB%
saga_cmd io_gdal 0 -TRANSFORM 1 -RESAMPLING 3 -GRIDS "C:/Users/pedro.venancio/AppData/Local/Temp/processing_46a9a8edada443d68a7c07a0466c2a9a/8fcc35f8e29c4bacabd6b8e8b9082fe1/demsrtmpttm0680mclip.sgrd" -FILES "D:\SIG\MDT\dem_srtm_pttm06_80m_clip.tif"
saga_cmd grid_tools "Invert Grid" -GRID "C:/Users/pedro.venancio/AppData/Local/Temp/processing_46a9a8edada443d68a7c07a0466c2a9a/8fcc35f8e29c4bacabd6b8e8b9082fe1/demsrtmpttm0680mclip.sgrd" -INVERSE "D:/SIG/MDT/testes/dem_inverted.sdat"
exit
Log -> First run
Processing algorithm…
Algorithm 'Invert grid' starting…
Input parameters:
{ 'GRID' : 'D:/SIG/MDT/dem_srtm_pttm06_80m_clip.tif', 'INVERSE' : 'D:/SIG/MDT/testes/dem_inverted.sdat' }
io_gdal 0 -TRANSFORM 1 -RESAMPLING 3 -GRIDS "C:/Users/pedro.venancio/AppData/Local/Temp/processing_46a9a8edada443d68a7c07a0466c2a9a/8fcc35f8e29c4bacabd6b8e8b9082fe1/demsrtmpttm0680mclip.sgrd" -FILES "D:\SIG\MDT\dem_srtm_pttm06_80m_clip.tif"
grid_tools "Invert Grid" -GRID "C:/Users/pedro.venancio/AppData/Local/Temp/processing_46a9a8edada443d68a7c07a0466c2a9a/8fcc35f8e29c4bacabd6b8e8b9082fe1/demsrtmpttm0680mclip.sgrd" -INVERSE "D:/SIG/MDT/testes/dem_inverted.sdat"
C:\OSGeo4W64\bin>set SAGA=C:/OSGeo4W64/saga-7.2.0_x64
C:\OSGeo4W64\bin>set SAGA_MLB=C:/OSGeo4W64/saga-7.2.0_x64\modules
C:\OSGeo4W64\bin>PATH=C:\OSGEO4~1\apps\qgis-rel-dev\bin;C:\OSGEO4~1\apps\grass\grass-7.6.0\lib;C:\OSGEO4~1\apps\grass\grass-7.6.0\bin;C:\OSGEO4~1\apps\Python37;C:\OSGEO4~1\apps\Python37\Scripts;C:\OSGEO4~1\apps\qt5\bin;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program Files\RStudio\bin;C:\OSGEO4~1\apps\Python37\lib\site-packages\numpy\.libs;C:\OSGEO4~1\apps\Python37\lib\site-packages\scipy\extra-dll;C:/OSGeo4W64/saga-7.2.0_x64;C:/OSGeo4W64/saga-7.2.0_x64\modules
C:\OSGeo4W64\bin>saga_cmd io_gdal 0 -TRANSFORM 1 -RESAMPLING 3 -GRIDS "C:/Users/pedro.venancio/AppData/Local/Temp/processing_46a9a8edada443d68a7c07a0466c2a9a/8fcc35f8e29c4bacabd6b8e8b9082fe1/demsrtmpttm0680mclip.sgrd" -FILES "D:\SIG\MDT\dem_srtm_pttm06_80m_clip.tif"
____________________________
##### ## ##### ##
### ### ## ###
### # ## ## #### # ##
### ##### ## # #####
##### # ## ##### # ##
____________________________
SAGA Version: 7.2.0 (64 bit)
ERROR 1: Can't load requested DLL: C:\OSGeo4W64\saga-7.2.0_x64\dll\gdal_KEA.dll
Execution completed in 2.38 seconds
Results:
{'INVERSE': 'D:/SIG/MDT/testes/dem_inverted.sdat'}
Loading resulting layers
The following layers were not correctly generated.<ul><li>D:/SIG/MDT/testes/dem_inverted.sdat</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.
In this first run, the temp raster is created by io_gdal 0
, importing the input tif raster and transforming it to sgrd in temp folder
C:/Users/pedro.venancio/AppData/Local/Temp/processing_46a9a8edada443d68a7c07a0466c2a9a/8fcc35f8e29c4bacabd6b8e8b9082fe1/demsrtmpttm0680mclip.sgrd
But after this, it does not run the main algorithm, in this case, grid_tools "Invert Grid"
.
Running the algorithm again, as it already has the temp raster in sgrd C:/Users/pedro.venancio/AppData/Local/Temp/processing_46a9a8edada443d68a7c07a0466c2a9a/8fcc35f8e29c4bacabd6b8e8b9082fe1/demsrtmpttm0680mclip.sgrd
, just runs the grid_tools "Invert Grid"
:
saga_batch_job.bat -> Second run
set SAGA=C:/OSGeo4W64/saga-7.2.0_x64
set SAGA_MLB=C:/OSGeo4W64/saga-7.2.0_x64\modules
PATH=%PATH%;%SAGA%;%SAGA_MLB%
saga_cmd grid_tools "Invert Grid" -GRID "C:/Users/pedro.venancio/AppData/Local/Temp/processing_46a9a8edada443d68a7c07a0466c2a9a/8fcc35f8e29c4bacabd6b8e8b9082fe1/demsrtmpttm0680mclip.sgrd" -INVERSE "D:/SIG/MDT/testes/dem_inverted.sdat"
exit
Log -> Second run
Processing algorithm…
Algorithm 'Invert grid' starting…
Input parameters:
{ 'GRID' : 'D:/SIG/MDT/dem_srtm_pttm06_80m_clip.tif', 'INVERSE' : 'D:/SIG/MDT/testes/dem_inverted.sdat' }
grid_tools "Invert Grid" -GRID "C:/Users/pedro.venancio/AppData/Local/Temp/processing_46a9a8edada443d68a7c07a0466c2a9a/8fcc35f8e29c4bacabd6b8e8b9082fe1/demsrtmpttm0680mclip.sgrd" -INVERSE "D:/SIG/MDT/testes/dem_inverted.sdat"
C:\OSGeo4W64\bin>set SAGA=C:/OSGeo4W64/saga-7.2.0_x64
C:\OSGeo4W64\bin>set SAGA_MLB=C:/OSGeo4W64/saga-7.2.0_x64\modules
C:\OSGeo4W64\bin>PATH=C:\OSGEO4~1\apps\qgis-rel-dev\bin;C:\OSGEO4~1\apps\grass\grass-7.6.0\lib;C:\OSGEO4~1\apps\grass\grass-7.6.0\bin;C:\OSGEO4~1\apps\Python37;C:\OSGEO4~1\apps\Python37\Scripts;C:\OSGEO4~1\apps\qt5\bin;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program Files\RStudio\bin;C:\OSGEO4~1\apps\Python37\lib\site-packages\numpy\.libs;C:\OSGEO4~1\apps\Python37\lib\site-packages\scipy\extra-dll;C:/OSGeo4W64/saga-7.2.0_x64;C:/OSGeo4W64/saga-7.2.0_x64\modules
C:\OSGeo4W64\bin>saga_cmd grid_tools "Invert Grid" -GRID "C:/Users/pedro.venancio/AppData/Local/Temp/processing_46a9a8edada443d68a7c07a0466c2a9a/8fcc35f8e29c4bacabd6b8e8b9082fe1/demsrtmpttm0680mclip.sgrd" -INVERSE "D:/SIG/MDT/testes/dem_inverted.sdat"
____________________________
##### ## ##### ##
### ### ## ###
### # ## ## #### # ##
### ##### ## # #####
##### # ## ##### # ##
____________________________
SAGA Version: 7.2.0 (64 bit)
Execution completed in 2.16 seconds
Results:
{'INVERSE': 'D:/SIG/MDT/testes/dem_inverted.sdat'}
Loading resulting layers
Algorithm 'Invert grid' finished
and the output is correctly created and loaded in QGIS.
So, this issue can be somehow related with #3
From the suggestions of Nicolas Godet, member of QGIS (qgis/QGIS#50621 (comment)) on the issue "Watershed delineation Error qgis/QGIS#50621", I tried "Processing SAGA NextGen provider" as suggested by Nicolas Godet. Still we are getting the same error note as shown in uploaded image. Kindly advise how to proceed or resolve the bug.
The SAGA processing can't be run on a profile that has a special character on its path. The original bug happens on a computer that put the QGIS directory on something like this: D:\\Users\Company\UserName\AppData(Roaming)\QGIS\QGIS3\profiles\default\processing
. Note the bracket on AppData(Roaming)
.
To reproduce, create a new profile with a bracket on its name, for example: new(profile)
then run any algorithm on it. For example, this is the error message that I got:
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-11-16T04:27:35
Algorithm 'Split lines at points' starting…
Input parameters:
{ 'EPSILON' : 1, 'INTERSECT' : 'TEMPORARY_OUTPUT', 'LINES' : 'C:/Users/fclementi/Documents/projects/data/db-saga-issue/lines.gpkg|layername=lines', 'OUTPUT' : 1, 'SPLIT' : 'C:/Users/fclementi/Documents/projects/data/db-saga-issue/lines.gpkg|layername=point' }
shapes_lines "Split Lines at Points" -LINES "C:/Users/fclementi/AppData/Local/Temp/processing_fmRWFV/db9ffe63b94a40e28439c5445bb206bb/LINES.shp" -SPLIT "C:/Users/fclementi/AppData/Local/Temp/processing_fmRWFV/ec9c4c70a3184734bf524e3289258e99/SPLIT.shp" -OUTPUT 1 -EPSILON 1.0 -INTERSECT "C:/Users/fclementi/AppData/Local/Temp/processing_fmRWFV/0758aa058d5a41c1b26e51dc49e9e8dc/INTERSECT.shp"
'C:\Users\fclementi\AppData\Roaming\QGIS\QGIS3\profiles\new' is not recognized as an internal or external command,
operable program or batch file.
Execution completed in 0.31 seconds
Results:
{'INTERSECT': 'C:/Users/fclementi/AppData/Local/Temp/processing_fmRWFV/0758aa058d5a41c1b26e51dc49e9e8dc/INTERSECT.shp'}
Loading resulting layers
The following layers were not correctly generated.
• C:/Users/fclementi/AppData/Local/Temp/processing_fmRWFV/0758aa058d5a41c1b26e51dc49e9e8dc/INTERSECT.shp
You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.
and this is the log:
2022-11-16T04:27:36 INFO SAGA execution commands
shapes_lines "Split Lines at Points" -LINES "C:/Users/fclementi/AppData/Local/Temp/processing_fmRWFV/db9ffe63b94a40e28439c5445bb206bb/LINES.shp" -SPLIT "C:/Users/fclementi/AppData/Local/Temp/processing_fmRWFV/ec9c4c70a3184734bf524e3289258e99/SPLIT.shp" -OUTPUT 1 -EPSILON 1.0 -INTERSECT "C:/Users/fclementi/AppData/Local/Temp/processing_fmRWFV/0758aa058d5a41c1b26e51dc49e9e8dc/INTERSECT.shp"
2022-11-16T04:27:36 INFO SAGA execution console output
'C:\Users\fclementi\AppData\Roaming\QGIS\QGIS3\profiles\new' is not recognized as an internal or external command,
operable program or batch file.
Of course, we can use a "proper" naming of the profile or make sure that the QGIS directory is under a "proper" path (proper = without a special character). But it would be great to handle this case.
Hi @nyalldawson
I get this error running all algorithms, in version 0.0.2:
Processing algorithm…
Algorithm 'Wind exposition index' starting…
Input parameters:
{ 'ACCEL' : 1.5, 'DEM' : 'D:/SIG/MDT/dem_srtm_pttm06_80m_clip.tif', 'EXPOSITION' : 'TEMPORARY_OUTPUT', 'MAXDIST' : 300, 'OLDVER' : False, 'PYRAMIDS' : False, 'STEP' : 15 }
Traceback (most recent call last):
File "C:/Users/pedro.venancio/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_saga_nextgen\processing\SagaAlgorithm.py", line 333, in processAlgorithm
utils.createSagaBatchJobFileFromSagaCommands(commands)
AttributeError: module 'processing_saga_nextgen.processing.utils' has no attribute 'createSagaBatchJobFileFromSagaCommands'
Execution failed after 0.06 seconds
Loading resulting layers
Algorithm 'Wind exposition index' finished
I've posted the same in the QGIS issues, but since the error is the same for the SAGA Next Gen plugin I'm copying the link to the issue here too:
qgis/QGIS#44514
The binary SAGA packages distributed through OSGeo4W (Windows) and ubuntugis-unstable PPA (Ubuntu) are lagging behind quite a lot, being at 7.8.2 and at 8.2.2 respectively. For Windows, an up-to-date binary build can be installed manually from https://sourceforge.net/projects/saga-gis/files/ while other platforms need to locally build from source to get it.
Currently users that make use of OSGeo4W / ubuntugis-unstable PPA (and perhaps other) repositories that distribute SAGA will get a warning after updating the plugin to version 1.0.0, like below.
Since the QGIS plugin now requests SAGA >= 9.1, I think it's a good idea to stimulate the OSGeo4W and the PPA maintainers to update SAGA in their repository.
$ qgis_process plugins
Problem with SAGA installation: unsupported SAGA version (found: 8.2.2, required: >=9.1.).
['PC_OUT', 'Result', None, 'True']
['PC', 'Point Cloud', None, 'True']
['PC_OUT', 'Colorised Point Cloud', None, 'False']
['THINNED_PC', 'Thinned Points', None, 'False']
['POINTS', 'Points', None, 'False']
['PC_OUT', 'Filtered Points', None, 'True']
['RESULT', 'Thinned Points', None, 'True']
['OUTPUT', 'Output', None, 'True']
['OUT', 'Output', None, 'False']
['POINTS', 'Points', None, 'True']
['TARGET_PC', 'Target', None, 'False']
['PC_OUT', 'Point Cloud Classified', None, 'True']
['POINTS', 'Points', None, 'False']
['POINTS', 'Points', None, 'False']
['PC_OUT', 'Point Cloud', None, 'True']
['PC_OUT', 'Result', None, 'True']
['TARGET_PC', 'Target', None, 'False']
['PC_OUT', 'Point Cloud', None, 'False']
['PC_OUT', 'Merged Point Cloud', None, 'False']
['POINTS', 'Points', None, 'False']
Available plugins
(* indicates loaded plugins which implement Processing providers)
* QNEAT3
* processing_saga_nextgen
* pcraster_tools
* ViewshedAnalysis
* cartography_tools
* wbt_for_qgis
* latlontools
* grassprovider
* otbprovider
* processing
'cmd.exe' is not recognized as an internal or external command,
operable program or batch file.
On Windows, jumping through a few hoops is required to even get SAGA visible in QGIS. First you have to install the binaries, then you have to go into QGIS settings under system environment and add the SAGA binaries path without spaces (C:\progra~1\saga). Finally install the SAGA nextgen processing plugin. This makes SAGA visible in the toolbox.
When trying to run any tool I get the error at the top. What I think is happening is that underscore needs to be escaped in the code, so calling "saga_cmd.exe" should be called as "saga\_cmd.exe"
.
I cannot find the code where saga is called though. Can someone point me to where this is so I can try a quick fix?
Couldn't load plugin 'processing_saga_nextgen' due to an error when calling its classFactory() method
ModuleNotFoundError: No module named 'processing.algs.saga.SagaNameDecorator'
Traceback (most recent call last):
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 423, in _startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:\Users/giovanni/AppData/Roaming/QGIS/QGIS3\profiles\training/python/plugins\processing_saga_nextgen\__init__.py", line 22, in classFactory
from .saga_nextgen_plugin import SagaNextGenProviderPlugin
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/giovanni/AppData/Roaming/QGIS/QGIS3\profiles\training/python/plugins\processing_saga_nextgen\saga_nextgen_plugin.py", line 21, in
from processing_saga_nextgen.processing.provider import SagaNextGenAlgorithmProvider
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/giovanni/AppData/Roaming/QGIS/QGIS3\profiles\training/python/plugins\processing_saga_nextgen\processing\provider.py", line 35, in
from .SagaAlgorithm import SagaAlgorithm
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\Users/giovanni/AppData/Roaming/QGIS/QGIS3\profiles\training/python/plugins\processing_saga_nextgen\processing\SagaAlgorithm.py", line 55, in
from processing.algs.saga.SagaNameDecorator import decoratedAlgorithmName, decoratedGroupName
File "C:\OSGeo4W/apps/qgis/./python\qgis\utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'processing.algs.saga.SagaNameDecorator'
SAGA Slope, Aspect, Curvature algorithm is being applied in a very strange way.
Looking at log and saga_batch_job.bat file, it is running saga_cmd ta_morphometry "Slope, Aspect, Curvature" several times, each one adding a new output.
set SAGA=C:/OSGeo4W64/saga-7.2.0_x64
set SAGA_MLB=C:/OSGeo4W64/saga-7.2.0_x64\modules
PATH=%PATH%;%SAGA%;%SAGA_MLB%
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat"
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat"
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat"
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI "" -C_MAXI ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI "" -C_MAXI "" -C_TOTA ""
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI "" -C_MAXI "" -C_TOTA "" -C_ROTO ""
exit
Note that I only had choosed outputs to -SLOPE, -ASPECT and -C_GENE. All others are with "[Skip output]".
In the end, it only creates the -SLOPE output, because, in fact, looking at log, Processing only runs
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat"
instead of
saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat"
Processing algorithm…
Algorithm 'Slope, aspect, curvature' starting…
Input parameters:
{ 'ASPECT' : 'D:/SIG/MDT/testes/aspect.sdat', 'C_GENE' : 'D:/SIG/MDT/testes/gen_curvature.sdat', 'ELEVATION' : 'D:/SIG/MDT/dem_srtm_pttm06_80m_clip.tif', 'METHOD' : 6, 'SLOPE' : 'D:/SIG/MDT/testes/slope.sdat', 'UNIT_ASPECT' : 1, 'UNIT_SLOPE' : 1 }
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat"
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat"
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat"
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI "" -C_MAXI ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI "" -C_MAXI "" -C_TOTA ""
ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat" -ASPECT "D:/SIG/MDT/testes/aspect.sdat" -C_GENE "D:/SIG/MDT/testes/gen_curvature.sdat" -C_PLAN "" -C_PROF "" -C_TANG "" -C_LONG "" -C_CROS "" -C_MINI "" -C_MAXI "" -C_TOTA "" -C_ROTO ""
C:\OSGeo4W64\bin>set SAGA=C:/OSGeo4W64/saga-7.2.0_x64
C:\OSGeo4W64\bin>set SAGA_MLB=C:/OSGeo4W64/saga-7.2.0_x64\modules
C:\OSGeo4W64\bin>PATH=C:\OSGEO4~1\apps\qgis-rel-dev\bin;C:\OSGEO4~1\apps\grass\grass-7.6.0\lib;C:\OSGEO4~1\apps\grass\grass-7.6.0\bin;C:\OSGEO4~1\apps\Python37;C:\OSGEO4~1\apps\Python37\Scripts;C:\OSGEO4~1\apps\qt5\bin;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program Files\RStudio\bin;C:\OSGEO4~1\apps\Python37\lib\site-packages\numpy\.libs;C:\OSGEO4~1\apps\Python37\lib\site-packages\scipy\extra-dll;C:/OSGeo4W64/saga-7.2.0_x64;C:/OSGeo4W64/saga-7.2.0_x64\modules
C:\OSGeo4W64\bin>saga_cmd ta_morphometry "Slope, Aspect, Curvature" -ELEVATION "C:/Users/pedro.venancio/AppData/Local/Temp/processing_a5c3a4230ace49b4947fb8b118c6a777/21e39323d97940d1b471248617946458/demsrtmpttm0680mclip.sgrd" -METHOD 6 -UNIT_SLOPE 1 -UNIT_ASPECT 1 -SLOPE "D:/SIG/MDT/testes/slope.sdat"
____________________________
##### ## ##### ##
### ### ## ###
### # ## ## #### # ##
### ##### ## # #####
##### # ## ##### # ##
____________________________
SAGA Version: 7.2.0 (64 bit)
ERROR 1: Can't load requested DLL: C:\OSGeo4W64\saga-7.2.0_x64\dll\gdal_KEA.dll
Execution completed in 2.06 seconds
Results:
{'ASPECT': 'D:/SIG/MDT/testes/aspect.sdat',
'C_CROS': '',
'C_GENE': 'D:/SIG/MDT/testes/gen_curvature.sdat',
'C_LONG': '',
'C_MAXI': '',
'C_MINI': '',
'C_PLAN': '',
'C_PROF': '',
'C_ROTO': '',
'C_TANG': '',
'C_TOTA': '',
'SLOPE': 'D:/SIG/MDT/testes/slope.sdat'}
Loading resulting layers
The following layers were not correctly generated.<ul><li>D:/SIG/MDT/testes/aspect.sdat</li><li>D:/SIG/MDT/testes/gen_curvature.sdat</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.
Another issue I see is this error
ERROR 1: Can't load requested DLL: C:\OSGeo4W64\saga-7.2.0_x64\dll\gdal_KEA.dll
gdal_KEA.dll exists in C:\OSGeo4W64\saga-7.2.0_x64\dll\
SAGA supports geopackages (at least the GUI does), so it's weird to me that everything is done via shapefiles for vector formats with processing.
Context:
I ran into an issue when I needed to chain a bunch of Polygon Identity tools together. The output ended up having field errors due to the number of similar field names and the shapefile limitations. This made me have to go a different route for my model.
The inverse distance weighted interpolation results in an 'empty' raster layer. It seems to me that the problem is that the attribute is <not set>
(see screenshot). However, I did select the attribute column.
Just to see if there is something wrong with the data, I tried another saga function (kernel density estimation) using the same column, and that works without problem. I also ran the inverse distance weighted interpolation directly in SAGA, and that worked like a charm.
We have the following snippet in a Dockerfile:
RUN apt-get install -y qgis qgis-plugin-grass saga
RUN wget -qO sagang_plugin.zip https://plugins.qgis.org/plugins/processing_saga_nextgen/version/0.0.7/download/
RUN unzip -q sagang_plugin.zip -d /home/rstudio/.local/share/QGIS/QGIS3/profiles/default/python/plugins
What used to work now fails : (
Any ideas on a quick fix?
See geocompx/docker#41 for context.
Thanks!
Hello,
Thanks for all the work getting SAGA to work with QGIS! It sounds tike it can be tricky at times but there are a lot of SAGA algorithms I have trouble finding alternatives for in QGIS. Therefor I have a lot of them in my graphical models. In QGIS version 3.30 with SAGA having been removed this means that those models are now broken.
Would it be possible to make the Next Gen plugin algorithms automatically be used in their place?
It seems that maybe the only difference is that the call to the algorithm is sagang:algo rather than saga:algo. While this distinction made sense in pre 3.30 versions when there could be 2 versions of the SAGA plugin now it seems unnecessary.
I have been able to get my models to work by opening the .model3 file in a text editor and simply finding and replacing saga: with sagang: but I imagine many users will be less adventurous than me.
Thanks again.
I'm sorry if I missed something. I just need some help to get this extension working.
I've compiled saga 7.2.0 on GNU/Linux, bin directory is in the path in first position. I've tried to set /path/to/saga-7.2.0
or /path/to/saga-7.2.0/bin
in provider settings for SAGANG. I still can't manage to run it with processing.
What about old SAGA provider? Should it be disabled?
When things are done right, should SagaNG appear in the processing toolbox?
Is there a special way to call processing to use SagaNG?
Greetings Nyall,
I am using the "Line to profile" tool and during the executing I get an error when SAGA is attempting to read the raster,
The raster is originally a Float64 as opposed to my other rasters, but now even with older rasters that were ok i get the error message when reading the raster input of ta_slopes
Loading grid: C:/Users/-/AppData/Local/Temp/processing_UKaRLq/9ca10f78d5924c078ffe4636f0461416/ATHDEM5mc.sgrd... failed Error: input file [C:/Users/-/AppData/Local/Temp/processing_UKaRLq/9ca10f78d5924c078ffe4636f0461416/ATHDEM5mc.sgrd] Error: DEM
Do you have a clue what might be causing this?
How is it that this plugin is supporting the only version not listed by upstream's git?
https://sourceforge.net/p/saga-gis/code/ref/master/tags/
Also does it really need to match exactly to 7.2? Would supporting 7 be a possibility?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.