-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1635 from gioman/saga_slope
Fixes SAGA slope,aspect,curvature for SAGA 2.1.x
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
python/plugins/processing/algs/saga/description/2.1_Slope,Aspect,Curvature.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Slope, Aspect, Curvature | ||
ta_morphometry | ||
ParameterRaster|ELEVATION|Elevation|False | ||
ParameterSelection|METHOD|Method|[0] Maximum Slope (Travis et al. 1975);[1] Maximum Triangle Slope (Tarboton 1997);[2] Least Squares Fitted Plane (Horn 1981, Costa-Cabral & Burgess 1996);[3] 6 parameter 2nd order polynom (Evans 1979);[4] 6 parameter 2nd order polynom (Heerdegen & Beran 1982);[5] 6 parameter 2nd order polynom (Bauer, Rohdenburg, Bork 1985);[6] 9 parameter 2nd order polynom (Zevenbergen & Thorne 1987);[7]10 parameter 3rd order polynom (Haralick 1983)|6 | ||
ParameterSelection|UNIT_SLOPE|Slope Units|[0] radians;[1] degree;[2] percent|0 | ||
ParameterSelection|UNIT_ASPECT|Aspect Units|[0] radians;[1] degree|0 | ||
OutputRaster|SLOPE|Slope | ||
OutputRaster|ASPECT|Aspect | ||
OutputRaster|C_GENE|General Curvature | ||
OutputRaster|C_PLAN|Plan Curvature | ||
OutputRaster|C_PROF|Profile Curvature | ||
OutputRaster|C_TANG|Tangential Curvature | ||
OutputRaster|C_LONG|Longitudinal Curvature | ||
OutputRaster|C_CROS|Cross-Sectional Curvature | ||
OutputRaster|C_MINI|Minimal Curvature | ||
OutputRaster|C_MAXI|Maximal Curvature | ||
OutputRaster|C_TOTA|Total Curvature | ||
OutputRaster|C_ROTO|Flow-Line Curvature |
2fe69e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue with this algorithm was related to saga 2.1.2.
This commit will make the algorithm work fine with 2.1.2, but will break it if the user has 2.1.0 installed, which was working fine before.
We still do not have a mechanism to handle multiple version of SAGA (only the distinction between 2.0.8 and another one), so this kind of fixes should wait until that is implemented.
This commit causes a regression if using 2.1.0, so it should be reverted
2fe69e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
it seems to me that modules descriptions renamed 2.1_* are working also with SAGA 2.1.2 so maybe the idea could be the following: Processing supports SAGA 2.0.8 and that's fine as it isshipped with osgeo4w, and then supports always the latest SAGA release, as it is usually available for download for Windows and in Linux repositories like Ubuntugis (used by most to install QGIS anyway).
2fe69e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, sounds like a good idea, to have a reference version which is older (2.0.8 in this case), and then support the latest one to avoid being blocked in case you distribution only has that.
It 's ok, but we should document it. For instance, with this latest change, 2.1.0 will not work for the slope algorithm, so you need whether 2.0.8 or the latest version, not an intermediate on
2fe69e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I would suggest something along this lines:
Processing in QGIS 2.6 supports two SAGA versions: 2.0.8 and the latest currently available, 2.1.2
On Windows QGIS ships SAGA 2.0.8, and Processing is configured to use it. If you want to use SAGA 2.1.2 then you must install QGIS with the Osgeo4W installer (and just it) and then download/install SAGA from this link http://sourceforge.net/projects/saga-gis/files/SAGA%20-%202.1/SAGA%202.1.2/
After that you must configure QGIS/Processing to use SAGA 2.1.2 by entering Processing general options.
On Ubuntu/Debian Linux you will find SAGA 2.1.2 in Ubuntugis and Debiangis repositories, the same usually used to install QGIS.
2fe69e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the longer term, IMHO it would be better if the backend version would be an attribute of each module, so one could have as many modules as he wants, and processing would pick up the suitable one.