I'm looking at geos::simplify::DouglasPeuckerLineSimplifier ( http://geos.refractions.net/ro/doxygen_docs/html/classgeos_1_1simplify_1_1DouglasPeuckerLineSimplifier.html#_details) and geos::geom::CoordinateSequence::removeRepeatedPoints ( http://geos.refractions.net/ro/doxygen_docs/html/classgeos_1_1geom_1_1CoordinateSequence.html#a22 )
Looking at the explanation of the Ramer–Douglas–Peucker algorithm ( https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm) I understand that the resulting geometry might be slightly different, that's why a tolerance needs to be added. 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? Thanks, Paul
_______________________________________________ geos-devel mailing list geos-devel@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/geos-devel