Use elevation data in mapcreator & route tests

This commit is contained in:
Manuel Fuhr 2023-05-22 13:32:48 +02:00
parent 0831f94750
commit 1b45d203f0
2 changed files with 3 additions and 1 deletions

View file

@ -42,7 +42,7 @@ public class MapcreatorTest {
File unodes55 = new File(tmpdir, "unodes55");
File bordernodes = new File(tmpdir, "bordernodes.dat");
unodes55.mkdir();
new PosUnifier().process(nodes55, unodes55, borderFile, bordernodes, "/private-backup/srtm");
new PosUnifier().process(nodes55, unodes55, borderFile, bordernodes, workingDir.getAbsolutePath());
// run WayLinker
File segments = new File(tmpdir, "segments");

View file

@ -77,6 +77,8 @@ public class RouteServerTest {
InputStream inputStream = httpConnection.getInputStream();
JSONObject geoJson = new JSONObject(new String(inputStream.readAllBytes(), StandardCharsets.UTF_8));
Assert.assertEquals("1169", geoJson.query("/features/0/properties/track-length"));
Assert.assertEquals("-15", geoJson.query("/features/0/properties/plain-ascend"));
Assert.assertEquals("4", geoJson.query("/features/0/properties/filtered ascend"));
}
@Test