geo icon indicating copy to clipboard operation
geo copied to clipboard

Removing (consecutive) repeated coordinates

Open mthh opened this issue 2 years ago • 3 comments

What do you think about having a functionality to remove consecutive repeated coordinates (optionally within a specified tolerance) in geometries of this crate ?

For example Postgis has ST_RemoveRepeatedPoints (and Turfjs has cleanCoords which is slightly different from ST_RemoveRepeatedPoints).

For MultiPoints it could remove repeated points while for (Multi)LineStrings and (Multi)Polygons it could remove consecutive repeated coordinates.

mthh avatar Nov 06 '22 13:11 mthh

That seems like a useful addition to me.

michaelkirk avatar Nov 09 '22 18:11 michaelkirk

This was completed, right?

frewsxcv avatar Nov 24 '22 02:11 frewsxcv

Only partially, the current implementation offers removal of duplicate points but not removal within a given tolerance.

mthh avatar Nov 24 '22 06:11 mthh