Skip to content

Commit

Permalink
Improve simplifier tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Nov 7, 2023
1 parent b3d1ae8 commit 03f3ac7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public void testPolygonReductionWithSplit() {

public void testPolygonReduction() {
checkDP("POLYGON ((120 120, 121 121, 122 122, 220 120, 180 199, 160 200, 140 199, 120 120))",
10.0,
"POLYGON ((120 120, 220 120, 180 199, 160 200, 140 199, 120 120)))");
10,
"POLYGON ((120 120, 220 120, 180 199, 160 200, 140 199, 120 120))");
}

public void testPolygonWithTouchingHole() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ public void testLinearRingRemoveEndpoint() throws Exception {
);
}

public void testPolygonKeepFlatEndpointWithTouch() throws Exception {
checkTPSNoChange("POLYGON ((0 0, 5 2.05, 10 0, 10 10, 0 10, 0 0), (5 2.1, 6 2, 6 4, 4 4, 4 2, 5 2.1))",
0.1 );
}

public void testPolygonKeepEndpointWithCross() throws Exception {
checkTPS(
"POLYGON ((50 52, 60 50, 90 60, 90 10, 10 10, 10 90, 60 90, 50 55, 40 80, 20 60, 40 50, 50 52))",
Expand Down

0 comments on commit 03f3ac7

Please sign in to comment.