Skip to content

Commit a356bac

Browse files
committed
[procesing] add tests for raster terrain analysis algorithms
1 parent fabc097 commit a356bac

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
Binary file not shown.

python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml

+62
Original file line numberDiff line numberDiff line change
@@ -1021,3 +1021,65 @@ tests:
10211021
OUTPUT:
10221022
name: expected/points_in_polys.gml
10231023
type: vector
1024+
1025+
- algorithm: qgis:aspect
1026+
name: Aspect from QGIS analysis library
1027+
params:
1028+
INPUT_LAYER:
1029+
name: dem.tif
1030+
type: raster
1031+
Z_FACTOR: 1.0
1032+
results:
1033+
OUTPUT_LAYER:
1034+
hash: 762865ee485a6736d188402aa10e6fd38a812a9e45a7dd2d4885a63a
1035+
type: rasterhash
1036+
1037+
- algorithm: qgis:slope
1038+
name: Slope from QGIS analysis library
1039+
params:
1040+
INPUT_LAYER:
1041+
name: dem.tif
1042+
type: raster
1043+
Z_FACTOR: 1.0
1044+
results:
1045+
OUTPUT_LAYER:
1046+
hash: 151ea76a21b286c16567eb6b4b692925a84145b65561a0017effb1a1
1047+
type: rasterhash
1048+
1049+
- algorithm: qgis:ruggednessindex
1050+
name: Ruggedness index from QGIS analysis library
1051+
params:
1052+
INPUT_LAYER:
1053+
name: dem.tif
1054+
type: raster
1055+
Z_FACTOR: 1.0
1056+
results:
1057+
OUTPUT_LAYER:
1058+
hash: ff630246e8dc19c7217d81261c6b64f965c17fa04d3e41d7979c1f1e
1059+
type: rasterhash
1060+
1061+
- algorithm: qgis:hillshade
1062+
name: Hillshade from QGIS analysis library
1063+
params:
1064+
AZIMUTH: 300.0
1065+
INPUT_LAYER:
1066+
name: dem.tif
1067+
type: raster
1068+
V_ANGLE: 40.0
1069+
Z_FACTOR: 1.0
1070+
results:
1071+
OUTPUT_LAYER:
1072+
hash: 58365b3715b925d6286e7f082ebd9c2a20f09fa1c922176d3f238002
1073+
type: rasterhash
1074+
1075+
- algorithm: qgis:reliefautomaticcolors
1076+
name: Relief (automatic colors calculation)
1077+
params:
1078+
INPUT_LAYER:
1079+
name: dem.tif
1080+
type: raster
1081+
Z_FACTOR: 1.0
1082+
results:
1083+
OUTPUT_LAYER:
1084+
hash: 7fe0e0174185fd743e23760f33615adf10f771b4275f320db6f7f4f8
1085+
type: rasterhash

0 commit comments

Comments
 (0)