Skip to content

Commit

Permalink
[T] addDataToRaster: test step function creation
Browse files Browse the repository at this point in the history
  • Loading branch information
TomFischer committed Nov 24, 2023
1 parent 2bd898b commit 0e065fa
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Applications/Utils/Tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions Tests/Data/GeoTools/addDataToRaster/10x10_step.asc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0e065fa

Please sign in to comment.