Removes duplicates and superfluous/collinear points from a linestring
the linestring to clean
true if the linestring is from a polygon ring
the toleranc to check if the segments are superfluous/collinear. Defaults to 1e-12
1e-12
if true, clean WGS84 points to be in bounds
A new cleaned lines (points are duplicated)
Removes duplicates and superfluous/collinear points from a linestring