locationtech / jts

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

Missing dimensions after simplifying with Douglas Peucker #1044

Open dsantosmerino-wkl opened 7 months ago

dsantosmerino-wkl commented 7 months ago

Currently the DouglasPeuckerSimplifier.simplify(geometry, simplificationTolerance) with 4 dimensions it returns a new geometry simplified but missing the m dimension.

It looks like the issue is happening around this line, when creating a new regular coordinate instead of just copying the original one. Opening a PR soon trying to address it.