pub trait RemoveRepeatedPoints<T>where
    T: CoordNum + FromPrimitive,{
    // Required methods
    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§

source

fn remove_repeated_points(&self) -> Self

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

source

fn remove_repeated_points_mut(&mut self)

Remove (consecutive) repeated points inplace.

Implementors§