From 7b22f5d8da7ae3e994b318215d3aa9ea119db301 Mon Sep 17 00:00:00 2001 From: Manuel Grizonnet Date: Tue, 23 Aug 2016 18:43:43 +0200 Subject: [PATCH] TEST: add a test for otb conversion application (simpler than bandmath) --- .../testdata/expected/otb/raster_convert.tif | Bin 0 -> 1315 bytes .../tests/testdata/otb_algorithm_tests.yaml | 24 ++++++++++-------- 2 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 python/plugins/processing/tests/testdata/expected/otb/raster_convert.tif diff --git a/python/plugins/processing/tests/testdata/expected/otb/raster_convert.tif b/python/plugins/processing/tests/testdata/expected/otb/raster_convert.tif new file mode 100644 index 0000000000000000000000000000000000000000..a985aa5636f13df574b76254243006867fc58328 GIT binary patch literal 1315 zcmebD)MDUZU|C#kkkkZ2*+5|izGfZ<5Pb`Xn_74n*nspWAYR|j%%B3Km4N1NXoslD z0ouT2mQp-ht2qV7eg!LOaAAaCI>?P|#Nh4e?c|%FjzxFgEb30g2Tx=o%ZDn^^$W zH!wV^sILcM-#!F>IJdqYgiF^VFvs5ddJqQbLB^Eo|1-0`9)u^XL|~Pj_4Ocp^cVsw z-K(z$VPv~O?19z~bL)dc_4P1Za;d%^gxMb1kwNhLomAi1Faw3JtK(^09aCW;s5{u literal 0 HcmV?d00001 diff --git a/python/plugins/processing/tests/testdata/otb_algorithm_tests.yaml b/python/plugins/processing/tests/testdata/otb_algorithm_tests.yaml index 07689c5d129..785166eaa63 100644 --- a/python/plugins/processing/tests/testdata/otb_algorithm_tests.yaml +++ b/python/plugins/processing/tests/testdata/otb_algorithm_tests.yaml @@ -1,18 +1,20 @@ # See ../README.md for a description of the file format tests: - - algorithm: otb:bandmath - name: Test (otb:bandmath) + + - algorithm: otb:imageconversion + name: Test (otb:imageconversion) params: - !!python/unicode '-exp': im1b1==826?255:0 - !!python/unicode '-il': - params: - - name: raster.tif - type: raster - type: multi - !!python/unicode '-ram': 128 + -hcp.high: 2 + -hcp.low: 2 + -in: + name: raster.tif + type: raster + -ram: 128 + -type: '1' + -type.linear.gamma: 1 results: - !!python/unicode '-out': - hash: a8acb8da3cf40a156fe26f815588a7cbf8f3c8f6b3c226968b1eab1e + -out: + hash: b3657f4d848b64f688db41638ea6d86d9de1d0a169bc1bafef8af82a type: rasterhash