Skip to content

Commit

Permalink
Add BNR tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Aug 20, 2024
1 parent a96516a commit e1f2f24
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ public void testMultiLineStringTouchAtEndpoint()
String a = "MULTILINESTRING ((0 0, 10 10), (10 10, 20 20))";
String b = "LINESTRING (10 10, 20 0)";

// under Mod2, A has no boundary - A.int / B.bdy = 0
// runRelateTest(a, b, BoundaryNodeRule.OGC_SFS_BOUNDARY_RULE, "F01FFF102" );
// under Mod2, A touch point is not boundary - A.int / B.bdy = 0
runRelate(a, b, BoundaryNodeRule.OGC_SFS_BOUNDARY_RULE, "F01FF0102" );
// under EndPoint, A has a boundary node - A.bdy / B.bdy = 0
runRelate(a, b, BoundaryNodeRule.ENDPOINT_BOUNDARY_RULE, "FF1F00102" );
// under MultiValent, A has a boundary node but B does not - A.bdy / B.bdy = F and A.int
// runRelateTest(a, b, BoundaryNodeRule.MULTIVALENT_ENDPOINT_BOUNDARY_RULE, "0F1FFF1F2" );
// under MultiValent, A has a boundary node but B does not - A.bdy / B.bdy = F and A.bdy / B.int = 0
runRelate(a, b, BoundaryNodeRule.MULTIVALENT_ENDPOINT_BOUNDARY_RULE, "FF10FF1F2" );
}

public void testLineRingTouchAtEndpoints()
Expand All @@ -79,7 +79,7 @@ public void testLineRingTouchAtEndpoints()
runRelate(a, b, BoundaryNodeRule.OGC_SFS_BOUNDARY_RULE, "F01FFF102" );
// under EndPoint, A has a boundary node - A.bdy / B.bdy = 0
runRelate(a, b, BoundaryNodeRule.ENDPOINT_BOUNDARY_RULE, "FF1F0F102" );
// under MultiValent, A has a boundary node but B does not - A.bdy / B.bdy = F and A.int
// under MultiValent, A has a boundary node but B does not - A.bdy / B.bdy = F and A.bdy / B.int = 0
runRelate(a, b, BoundaryNodeRule.MULTIVALENT_ENDPOINT_BOUNDARY_RULE, "FF10FF1F2" );
}

Expand Down

0 comments on commit e1f2f24

Please sign in to comment.