From 0e065fadd54afd3c9f3f58893bd6b1711f01119b Mon Sep 17 00:00:00 2001 From: Thomas Fischer Date: Fri, 24 Nov 2023 14:04:14 +0100 Subject: [PATCH] [T] addDataToRaster: test step function creation --- Applications/Utils/Tests.cmake | 11 +++++++++++ .../Data/GeoTools/addDataToRaster/10x10_step.asc | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 Tests/Data/GeoTools/addDataToRaster/10x10_step.asc diff --git a/Applications/Utils/Tests.cmake b/Applications/Utils/Tests.cmake index d75bb2634ad..f1811d0ca6e 100644 --- a/Applications/Utils/Tests.cmake +++ b/Applications/Utils/Tests.cmake @@ -1145,6 +1145,17 @@ AddTest( 10x10_sinxsiny.asc 10x10_sinxsiny.asc ) +AddTest( + NAME addDataToRaster_10x10_step_function + PATH GeoTools/addDataToRaster/ + WORKING_DIRECTORY ${Data_SOURCE_DIR}/GeoTools/addDataToRaster + EXECUTABLE addDataToRaster + EXECUTABLE_ARGS --ll_x 1000 --ll_y 100 --ur_x 1100 --ur_y 200 --function step --scaling_value 1 --offset_value 0 -i ${Data_SOURCE_DIR}/GeoTools/createRaster/10x10.asc -o ${Data_BINARY_DIR}/GeoTools/addDataToRaster/10x10_step.asc + TESTER diff + DIFF_DATA + 10x10_step.asc 10x10_step.asc +) + AddTest( NAME GMSH2OGS_linearElements PATH Utils/GMSH2OGS diff --git a/Tests/Data/GeoTools/addDataToRaster/10x10_step.asc b/Tests/Data/GeoTools/addDataToRaster/10x10_step.asc new file mode 100644 index 00000000000..8e574f2f96d --- /dev/null +++ b/Tests/Data/GeoTools/addDataToRaster/10x10_step.asc @@ -0,0 +1,16 @@ +ncols 10 +nrows 10 +xllcorner 1000 +yllcorner 100 +cellsize 10 +NODATA_value -9999 +1 1 1 1 1 0 0 0 0 0 +1 1 1 1 1 0 0 0 0 0 +1 1 1 1 1 0 0 0 0 0 +1 1 1 1 1 0 0 0 0 0 +1 1 1 1 1 0 0 0 0 0 +0 0 0 0 0 1 1 1 1 1 +0 0 0 0 0 1 1 1 1 1 +0 0 0 0 0 1 1 1 1 1 +0 0 0 0 0 1 1 1 1 1 +0 0 0 0 0 1 1 1 1 1