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§
sourcefn remove_repeated_points(&self) -> Self
fn remove_repeated_points(&self) -> Self
Create a new geometry with (consecutive) repeated points removed.
sourcefn remove_repeated_points_mut(&mut self)
fn remove_repeated_points_mut(&mut self)
Remove (consecutive) repeated points inplace.
Object Safety§
This trait is not object safe.