This sounds a bit like the buffer(0) approach to polygon cleaning. If it works, then it's a good approach. I suspect it would be faster than traversing the points of a line and removing equivalent ones in Python, because all the logic would be done in GEOS with no Shapely object overhead.
On Sun, Jan 19, 2014 at 9:53 PM, Denis Rykov <ryk...@gmail.com> wrote: > Hello! > > I would like to remove repeated points from geometry (such as > ST_RemoveRepeatedPoints in PostGIS). > It looks like Shapely doesn't have appropriate function, but I've > discovered that I can solve my problem using "simplify" function with 0 > tolerance: simplify(0). > Is it right approach? > > Thanks. > > _______________________________________________ > Community mailing list > Community@lists.gispython.org > http://lists.gispython.org/mailman/listinfo/community > > -- Sean Gillies
_______________________________________________ Community mailing list Community@lists.gispython.org http://lists.gispython.org/mailman/listinfo/community