Use elevation data in mapcreator & route tests
This commit is contained in:
parent
0831f94750
commit
1b45d203f0
2 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,7 @@ public class MapcreatorTest {
|
||||||
File unodes55 = new File(tmpdir, "unodes55");
|
File unodes55 = new File(tmpdir, "unodes55");
|
||||||
File bordernodes = new File(tmpdir, "bordernodes.dat");
|
File bordernodes = new File(tmpdir, "bordernodes.dat");
|
||||||
unodes55.mkdir();
|
unodes55.mkdir();
|
||||||
new PosUnifier().process(nodes55, unodes55, borderFile, bordernodes, "/private-backup/srtm");
|
new PosUnifier().process(nodes55, unodes55, borderFile, bordernodes, workingDir.getAbsolutePath());
|
||||||
|
|
||||||
// run WayLinker
|
// run WayLinker
|
||||||
File segments = new File(tmpdir, "segments");
|
File segments = new File(tmpdir, "segments");
|
||||||
|
|
|
@ -77,6 +77,8 @@ public class RouteServerTest {
|
||||||
InputStream inputStream = httpConnection.getInputStream();
|
InputStream inputStream = httpConnection.getInputStream();
|
||||||
JSONObject geoJson = new JSONObject(new String(inputStream.readAllBytes(), StandardCharsets.UTF_8));
|
JSONObject geoJson = new JSONObject(new String(inputStream.readAllBytes(), StandardCharsets.UTF_8));
|
||||||
Assert.assertEquals("1169", geoJson.query("/features/0/properties/track-length"));
|
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
|
@Test
|
||||||
|
|
Loading…
Reference in a new issue