From 94a1667b355146fed838feb55300e886a97f3c8e Mon Sep 17 00:00:00 2001 From: nicolas-f Date: Fri, 11 Oct 2024 14:00:37 +0200 Subject: [PATCH] updated fields --- .../noisemodelling/pathfinder/ProfileBuilderTest.java | 5 +++-- .../noisemodelling/propagation/special_ray.json | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/noisemodelling-pathfinder/src/test/java/org/noise_planet/noisemodelling/pathfinder/ProfileBuilderTest.java b/noisemodelling-pathfinder/src/test/java/org/noise_planet/noisemodelling/pathfinder/ProfileBuilderTest.java index ea8d58d56..493d7529a 100644 --- a/noisemodelling-pathfinder/src/test/java/org/noise_planet/noisemodelling/pathfinder/ProfileBuilderTest.java +++ b/noisemodelling-pathfinder/src/test/java/org/noise_planet/noisemodelling/pathfinder/ProfileBuilderTest.java @@ -35,6 +35,7 @@ public class ProfileBuilderTest { /** * Test the building adding to a {@link ProfileBuilder}. + * Polygons are normalized according to ISO, outer ring must be CCW and inner rings are CW * @throws ParseException JTS WKT parsing exception. */ @Test @@ -48,9 +49,9 @@ public void buildingAddingTest() throws ParseException { List list = profileBuilder.getBuildings(); assertEquals(3, list.size()); - assertEquals("POLYGON ((1 1, 5 1, 5 5, 1 5, 1 1))", list.get(0).getGeometry().toText()); + assertEquals("POLYGON ((1 1, 1 5, 5 5, 5 1, 1 1))", list.get(0).getGeometry().toText()); assertEquals(10, list.get(0).getGeometry().getCoordinate().z, 0); - assertEquals("POLYGON ((10 10, 15 10, 15 15, 10 15, 10 10))", list.get(1).getGeometry().toText()); + assertEquals("POLYGON ((10 10, 10 15, 15 15, 15 10, 10 10))", list.get(1).getGeometry().toText()); assertEquals(23, list.get(1).getGeometry().getCoordinate().z, 0); assertEquals("POLYGON ((6 8, 8 10, 8 4, 6 8))", list.get(2).getGeometry().toText()); assertEquals(56, list.get(2).getGeometry().getCoordinate().z, 0); diff --git a/noisemodelling-propagation/src/test/resources/org/noise_planet/noisemodelling/propagation/special_ray.json b/noisemodelling-propagation/src/test/resources/org/noise_planet/noisemodelling/propagation/special_ray.json index 57a404949..8ad9c2283 100644 --- a/noisemodelling-propagation/src/test/resources/org/noise_planet/noisemodelling/propagation/special_ray.json +++ b/noisemodelling-propagation/src/test/resources/org/noise_planet/noisemodelling/propagation/special_ray.json @@ -71,7 +71,7 @@ "pitch" : 1.2333295, "roll" : 0.0 }, - "buildingHeight" : 0.0, + "obstacleAltitude" : 0.0, "type" : "SRCE" }, { "coordinate" : { @@ -85,7 +85,7 @@ "wallId" : -1, "e" : 0.0, "orientation" : null, - "buildingHeight" : 0.0, + "obstacleAltitude" : 0.0, "type" : "DIFH" }, { "coordinate" : { @@ -99,7 +99,7 @@ "wallId" : -1, "e" : 0.0, "orientation" : null, - "buildingHeight" : 0.0, + "obstacleAltitude" : 0.0, "type" : "RECV" } ], "segmentList" : [ {