Skip to content

Commit

Permalink
fix: copy original coordinate with its dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
dsantosmerino-wkl committed Apr 5, 2024
1 parent b8f0627 commit b53689c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public Coordinate[] simplify()
CoordinateList coordList = new CoordinateList();
for (int i = 0; i < pts.length; i++) {
if (usePt[i])
coordList.add(new Coordinate(pts[i]));
coordList.add(pts[i].copy());
}

if (! isPreserveEndpoint && CoordinateArrays.isRing(pts)) {
Expand Down

0 comments on commit b53689c

Please sign in to comment.