Skip to content

Commit 6ec7b6e

Browse files
committedOct 11, 2017
remove duplicate tests
1 parent 7965d52 commit 6ec7b6e

File tree

1 file changed

+19
-223
lines changed

1 file changed

+19
-223
lines changed
 

‎python/plugins/processing/tests/testdata/gdal_algorithm_tests.yaml

Lines changed: 19 additions & 223 deletions
Original file line numberDiff line numberDiff line change
@@ -138,87 +138,7 @@ tests:
138138
# compare:
139139
# geometry:
140140
# precision: 7
141-
142-
- algorithm: gdal:aspect
143-
name: Aspect with standard parameters
144-
params:
145-
BAND: 1
146-
COMPUTE_EDGES: false
147-
INPUT:
148-
name: dem.tif
149-
type: raster
150-
TRIG_ANGLE: false
151-
ZERO_FLAT: false
152-
ZEVENBERGEN: false
153-
results:
154-
OUTPUT:
155-
hash: 8436df662a44a00762aa29768e5d6ecfaf2d42e9a4da02d8afc6e3f6
156-
type: rasterhash
157-
158-
- algorithm: gdal:aspect
159-
name: Aspect without NULL (-9999) values (0 instead)
160-
params:
161-
BAND: 1
162-
COMPUTE_EDGES: false
163-
INPUT:
164-
name: dem.tif
165-
type: raster
166-
TRIG_ANGLE: false
167-
ZERO_FLAT: true
168-
ZEVENBERGEN: false
169-
results:
170-
OUTPUT:
171-
hash: 43cccb440c7febb0095103eee3509b740e9f1bf2b3ad3b8a4c25622e
172-
type: rasterhash
173-
174-
- algorithm: gdal:aspect
175-
name: Aspect with trigonometric angle
176-
params:
177-
BAND: 1
178-
COMPUTE_EDGES: false
179-
INPUT:
180-
name: dem.tif
181-
type: raster
182-
TRIG_ANGLE: true
183-
ZERO_FLAT: false
184-
ZEVENBERGEN: false
185-
results:
186-
OUTPUT:
187-
hash: a95e8a09a613b551d3f33dfb4975c430f599dc55f761063ae9529124
188-
type: rasterhash
189-
190-
- algorithm: gdal:aspect
191-
name: Aspect zevenbergen
192-
params:
193-
BAND: 1
194-
COMPUTE_EDGES: false
195-
INPUT:
196-
name: dem.tif
197-
type: raster
198-
TRIG_ANGLE: false
199-
ZERO_FLAT: false
200-
ZEVENBERGEN: true
201-
results:
202-
OUTPUT:
203-
hash: 2cd5868b21efbd286f4977795143c89df77ac8976f8bc2a2c4e310d8
204-
type: rasterhash
205-
206-
- algorithm: gdal:aspect
207-
name: Aspect with edges
208-
params:
209-
BAND: 1
210-
COMPUTE_EDGES: true
211-
INPUT:
212-
name: dem.tif
213-
type: raster
214-
TRIG_ANGLE: false
215-
ZERO_FLAT: false
216-
ZEVENBERGEN: false
217-
results:
218-
OUTPUT:
219-
hash: d3a354c6e5f207779bb58f9bd23fd89a9f90a77d81aafc661d0ae077
220-
type: rasterhash
221-
141+
#
222142
# - algorithm: gdal:cliprasterbyextent
223143
# name: Clip raster by extent
224144
# params:
@@ -338,44 +258,24 @@ tests:
338258
# hash: 8f69431c6ff7db5174c1ca8e879ae39582fd4ce86f9b53edae0f38ce
339259
# type: rasterhash
340260

341-
- algorithm: gdal:hillshade
342-
name: Hillshade
261+
- algorithm: gdal:aspect
262+
name: Aspect
343263
params:
344-
ALTITUDE: 45.0
345-
AZIMUTH: 315.0
346264
BAND: 1
347265
COMPUTE_EDGES: false
348266
INPUT:
349267
name: dem.tif
350268
type: raster
351-
SCALE: 1.0
352-
ZEVENBERGEN: false
353-
Z_FACTOR: 1.0
354-
results:
355-
OUTPUT:
356-
hash: e5cf91b875b918682e456463165eddc4af4ae8855b143068e198ce2a
357-
type: rasterhash
358-
359-
- algorithm: gdal:hillshade
360-
name: Hillshade with edges calculation
361-
params:
362-
ALTITUDE: 45.0
363-
AZIMUTH: 315.0
364-
BAND: 1
365-
COMPUTE_EDGES: true
366-
INPUT:
367-
name: dem.tif
368-
type: raster
369-
SCALE: 1.0
269+
TRIG_ANGLE: false
270+
ZERO_FLAT: false
370271
ZEVENBERGEN: false
371-
Z_FACTOR: 1.0
372272
results:
373273
OUTPUT:
374-
hash: 570671408b020c9cc817e876f0e8081e0b11920c7d297abfe1cb3368
274+
hash: 8436df662a44a00762aa29768e5d6ecfaf2d42e9a4da02d8afc6e3f6
375275
type: rasterhash
376276

377277
- algorithm: gdal:hillshade
378-
name: Hillshade with Zevenbergen formula
278+
name: Hillshade
379279
params:
380280
ALTITUDE: 45.0
381281
AZIMUTH: 315.0
@@ -385,11 +285,11 @@ tests:
385285
name: dem.tif
386286
type: raster
387287
SCALE: 1.0
388-
ZEVENBERGEN: true
288+
ZEVENBERGEN: false
389289
Z_FACTOR: 1.0
390290
results:
391291
OUTPUT:
392-
hash: ce2174ab155023367d38785fb867456c6a1ae3535ea0ec5ad7a694d5
292+
hash: e5cf91b875b918682e456463165eddc4af4ae8855b143068e198ce2a
393293
type: rasterhash
394294

395295
- algorithm: gdal:slope
@@ -408,82 +308,21 @@ tests:
408308
hash: 319c470de3315f440371d5df8a6e478a8ecaf1cf904a013dbf1b3a6a
409309
type: rasterhash
410310

411-
- algorithm: gdal:slope
412-
name: Slope with edges
413-
params:
414-
AS_PERCENT: false
415-
BAND: 1
416-
COMPUTE_EDGES: true
417-
INPUT:
418-
name: dem.tif
419-
type: raster
420-
SCALE: 1.0
421-
ZEVENBERGEN: false
422-
results:
423-
OUTPUT:
424-
hash: f7f8df8b6517fd8660304f7f2fbd6ade2ae68035f4dd9a224c80b465
425-
type: rasterhash
426-
427-
- algorithm: gdal:slope
428-
name: Slope with Zevenbergen formula
429-
params:
430-
AS_PERCENT: false
431-
BAND: 1
432-
COMPUTE_EDGES: false
433-
INPUT:
434-
name: dem.tif
435-
type: raster
436-
SCALE: 1.0
437-
ZEVENBERGEN: true
438-
results:
439-
OUTPUT:
440-
hash: 90e42b1bc7be9cf7b4a729c6db44dde0bba39dd33012ade6bc8080e7
441-
type: rasterhash
442-
443-
- algorithm: gdal:slope
444-
name: Slope with percent instead of degree
311+
- algorithm: gdal:roughness
312+
name: Roughness
445313
params:
446-
AS_PERCENT: true
447314
BAND: 1
448315
COMPUTE_EDGES: false
449316
INPUT:
450317
name: dem.tif
451318
type: raster
452-
SCALE: 1.0
453-
ZEVENBERGEN: false
454319
results:
455320
OUTPUT:
456-
hash: c9dc888254a571e7fbf66691fb72b35f030f87decf59ce67e32ad89d
321+
hash: ee2b317e022da1001378fac60c9b613a74d3566b9870f9d121e6e322
457322
type: rasterhash
458323

459-
# - algorithm: gdal:roughness
460-
# name: standard roughness
461-
# params:
462-
# BAND: 1
463-
# COMPUTE_EDGES: false
464-
# INPUT:
465-
# name: dem.tif
466-
# type: raster
467-
# results:
468-
# OUTPUT:
469-
# hash: ee2b317e022da1001378fac60c9b613a74d3566b9870f9d121e6e322
470-
# type: rasterhash
471-
#
472-
# - algorithm: gdal:roughness
473-
# name: roughness with edges
474-
# params:
475-
# BAND: 1
476-
# COMPUTE_EDGES: true
477-
# INPUT:
478-
# name: dem.tif
479-
# type: raster
480-
# results:
481-
# OUTPUT:
482-
# hash: aba5167b8a2e97a93b22d406e0363f91c151fd353c0fc56ce24ac5fc
483-
# type: rasterhash
484-
485324
- algorithm: gdal:triterrainruggednessindex
486-
name: standard TRI
325+
name: Terrain ruggedness index
487326
params:
488327
BAND: 1
489328
COMPUTE_EDGES: false
@@ -495,21 +334,21 @@ tests:
495334
hash: c888764a08fae72a129dfff4947149c3185532373d33d4537ecf409c
496335
type: rasterhash
497336

498-
- algorithm: gdal:triterrainruggednessindex
499-
name: TRI with edges
337+
- algorithm: gdal:tpitopographicpositionindex
338+
name: Topographic position index
500339
params:
501340
BAND: 1
502-
COMPUTE_EDGES: true
341+
COMPUTE_EDGES: false
503342
INPUT:
504343
name: dem.tif
505344
type: raster
506345
results:
507346
OUTPUT:
508-
hash: 07376c74de869323125ceacbb5e34438655ff73f63d4b3ff3e268f7f
347+
hash: 4af1fe42d2a75c92eb9edcad9d77bd6cae958c0212de11e320fad689
509348
type: rasterhash
510349

511350
- algorithm: gdal:nearblack
512-
name: standard near black
351+
name: Near black
513352
params:
514353
INPUT:
515354
name: dem.tif
@@ -521,34 +360,8 @@ tests:
521360
hash: fff4a08498e93494f3f2cf1a9074451e6fd68341849aedc9e2c45e6a
522361
type: rasterhash
523362

524-
- algorithm: gdal:tpitopographicpositionindex
525-
name: standard TPI
526-
params:
527-
BAND: 1
528-
COMPUTE_EDGES: false
529-
INPUT:
530-
name: dem.tif
531-
type: raster
532-
results:
533-
OUTPUT:
534-
hash: 4af1fe42d2a75c92eb9edcad9d77bd6cae958c0212de11e320fad689
535-
type: rasterhash
536-
537-
- algorithm: gdal:tpitopographicpositionindex
538-
name: TPI with edges
539-
params:
540-
BAND: 1
541-
COMPUTE_EDGES: true
542-
INPUT:
543-
name: dem.tif
544-
type: raster
545-
results:
546-
OUTPUT:
547-
hash: f468bb08cbede2b606018a7a45a51cc221307a8421a11daefabeac12
548-
type: rasterhash
549-
550363
- algorithm: gdal:colorrelief
551-
name: Standard Color Relief
364+
name: Color relief
552365
params:
553366
BAND: 1
554367
COLOR_TABLE:
@@ -564,23 +377,6 @@ tests:
564377
hash: f714597fadc9cfc3f5263dc0e35f7c6ba285de238dce439e4988faac
565378
type: rasterhash
566379

567-
- algorithm: gdal:colorrelief
568-
name: Color Relief with edges
569-
params:
570-
BAND: 1
571-
COLOR_TABLE:
572-
name: custom/color_relief.txt
573-
type: file
574-
COMPUTE_EDGES: true
575-
INPUT:
576-
name: dem.tif
577-
type: raster
578-
MATCH_MODE: '0'
579-
results:
580-
OUTPUT:
581-
hash: f714597fadc9cfc3f5263dc0e35f7c6ba285de238dce439e4988faac
582-
type: rasterhash
583-
584380
# - algorithm: gdal:merge
585381
# name: Merge 2 raster layers
586382
# params:

0 commit comments

Comments
 (0)
Please sign in to comment.