Implement geos::geom::CoordinateSequence::removeRepeatedPoints

Description

We already use GEOS:Simplify in sf.SimplifyLines()

It is using the Douglas–Peucker algorithm

If I understand it correctly it not only removes vertices but also changes the shape a little bit.

I think geos::geom::CoordinateSequence::removeRepeatedPoints() is not altering the result, just removing vertices that have no effect on the shape.

I'll verify on the GEOS mailinglist.

Activity

Show:
Paul Meems
March 28, 2019, 11:05 AM

Reply from the GEOS mailinglist:

Use DP simplify with a tolerance of 0, will do what you're asking for.

So we don't need to implement removeRepeatedPoints.

I'll close this issue.

Assignee

Paul Meems

Reporter

Paul Meems

Labels

Epic Link

None

Affects versions

Fix versions

None

Priority

Medium
Configure