Function clean_linestrings
Source pub fn clean_linestrings<P: GetXY + SetXY + Clone + PartialEq>(
lines: &[Vec<P>],
is_poly: bool,
eps: Option<f64>,
clean_wgs84: bool,
) -> Option<Vec<Vec<P>>>
Expand description
Removes superfluous/collinear points from a collection of linestrings
§Parameters
lines: the linestring to clean
eps: the tolerance. Defaults to 1e-12
clean_wgs84: if true, clean WGS84 points to be valid WGS84 points
§Returns
The cleaned linestrings