locationtech / jts

The JTS Topology Suite is a Java library for creating and manipulating vector geometry.
Other
1.94k stars 441 forks source link

Ensure GeometryFixer does not change coordinate dimension #922

Closed chenhh021 closed 1 year ago

chenhh021 commented 1 year ago

Fixes #919 by replacing new Coordinate(p) by p.copy() when copy coordinates.

Since it's a GeometryFixer bug, I add the unit test in GeometryFixerTest.java.

Please help check this PR, thanks!