summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-11-04 11:21:23 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-11-04 11:21:23 +0000
commita46fded5d93487974ac5f40ff36c8c0f4f7a9db2 (patch)
tree62b66deaefae4b77da3f56bd4e774ddc93f142da /test
parentPsycho-rebased branch terrain on top of main (diff)
downloadilt-a46fded5d93487974ac5f40ff36c8c0f4f7a9db2.tar.bz2
ilt-a46fded5d93487974ac5f40ff36c8c0f4f7a9db2.tar.xz
ilt-a46fded5d93487974ac5f40ff36c8c0f4f7a9db2.zip
Static helper for loading ASCII grid data
Diffstat (limited to 'test')
-rw-r--r--test/test-terrain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-terrain.cpp b/test/test-terrain.cpp
index 53eebfb..512a90e 100644
--- a/test/test-terrain.cpp
+++ b/test/test-terrain.cpp
@@ -8,7 +8,7 @@
class TestTerrainMesh : public TerrainMesh {
public:
- TestTerrainMesh() : TerrainMesh {FIXTURESDIR "height/SD19.asc"} { }
+ TestTerrainMesh() : TerrainMesh {TerrainMesh::loadFromAsciiGrid(FIXTURESDIR "height/SD19.asc")} { }
};
constexpr size_t ncols = 200, nrows = 200, xllcorner = 310000, yllcorner = 490000, cellsize = 50;