pub trait RemoveRepeatedPoints<T>where
    T: CoordNum + FromPrimitive,
{ fn remove_repeated_points(&self) -> Self; fn remove_repeated_points_mut(&mut self); }
Expand description

Remove repeated points from a MultiPoint and repeated consecutive coordinates from LineString, Polygon, MultiLineString and MultiPolygon.

For GeometryCollection it individually removes the repeated points of each geometry in the collection.

For Point, Line, Rect and Triangle the geometry remains the same.

Required Methods§

Create a new geometry with (consecutive) repeated points removed.

Remove (consecutive) repeated points inplace.

Implementors§