[geos-devel] Simplify vs removeRepeatedPoints

Sandro Santilli strk at kbt.io
Thu Mar 28 04:02:13 PDT 2019

On Thu, Mar 28, 2019 at 11:50:36AM +0100, Paul Meems wrote:

> But I don't want my geometry to be altered I just want to remove vertices
> that don't contribute to the shape of the geometry.
> Consider a square with not only 4 corner points but also points between the
> corner points.
> Those points I want to remove because they are redundant and without them,
> I still have the 'same' square.
> Should/can I use removeRepeatedPoints() or should I use another method?

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


More information about the geos-devel mailing list