Skip to content

Commit

Permalink
updated fields
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Oct 11, 2024
1 parent d0cc5d8 commit 94a1667
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -48,9 +49,9 @@ public void buildingAddingTest() throws ParseException {

List<ProfileBuilder.Building> 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"pitch" : 1.2333295,
"roll" : 0.0
},
"buildingHeight" : 0.0,
"obstacleAltitude" : 0.0,
"type" : "SRCE"
}, {
"coordinate" : {
Expand All @@ -85,7 +85,7 @@
"wallId" : -1,
"e" : 0.0,
"orientation" : null,
"buildingHeight" : 0.0,
"obstacleAltitude" : 0.0,
"type" : "DIFH"
}, {
"coordinate" : {
Expand All @@ -99,7 +99,7 @@
"wallId" : -1,
"e" : 0.0,
"orientation" : null,
"buildingHeight" : 0.0,
"obstacleAltitude" : 0.0,
"type" : "RECV"
} ],
"segmentList" : [ {
Expand Down

0 comments on commit 94a1667

Please sign in to comment.