locationtech / jts

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

Fix Douglas Peucker simplifier for XYZM coordinates #1045

Open dsantosmerino-wkl opened 3 months ago

dsantosmerino-wkl commented 3 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.