Skip to content

Commit

Permalink
Add TPSimplifier short polygon test
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Nov 7, 2023
1 parent c7e6c6f commit a13b7a5
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,15 @@ public void testPolygonRemoveFlatEndpoint() throws Exception {
);
}

//-- vertex is not removed due to overly-restrictive heuristic result length calculation?
public void testPolygonSize5NotSimplfied() throws Exception {
checkTPS(
"POLYGON ((10 90, 10 10, 90 10, 47 57, 10 90))",
10,
"POLYGON ((10 90, 10 10, 90 10, 47 57, 10 90))"
);
}

/**
* Test is from http://postgis.refractions.net/pipermail/postgis-users/2008-April/019327.html
* Exhibits the issue where simplified polygon shells can "jump" across
Expand Down

0 comments on commit a13b7a5

Please sign in to comment.