locationtech / jts

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

Fix Douglas Peucker simplifier for XYZM coordinates #1045

Open dsantosmerino-wkl opened 7 months ago

dsantosmerino-wkl commented 7 months ago

Resolves #1044

As explained in the issue, it looks like the current implementation removes the m dimension. To resolve this issue, we have modified the implementation to ensure that the original coordinate, including its dimension, is preserved.