pub enum SimplifyMethod {
PlanarMeters,
GreatCircleMeters,
EuclidRaw,
}Expand description
Distance calculation method for Douglas-Peucker simplification.
Each method trades off between accuracy and performance for different use cases.
Variants§
PlanarMeters
ENU projection around the polyline’s midpoint.
Best for regional datasets where reasonable accuracy is needed with better performance than great circle calculations. Accuracy decreases for very large geographic regions.
GreatCircleMeters
Spherical distance calculations using the great circle method.
Best for global datasets requiring high accuracy. Uses more computation than planar methods but works correctly at any scale.
EuclidRaw
Direct Euclidean distance between raw coordinates.
Best for non-geographic coordinate systems, screen coordinates, or already-projected data where coordinates represent planar distances.
Trait Implementations§
Source§impl Clone for SimplifyMethod
impl Clone for SimplifyMethod
Source§fn clone(&self) -> SimplifyMethod
fn clone(&self) -> SimplifyMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimplifyMethod
impl Debug for SimplifyMethod
Source§impl PartialEq for SimplifyMethod
impl PartialEq for SimplifyMethod
impl Copy for SimplifyMethod
impl Eq for SimplifyMethod
impl StructuralPartialEq for SimplifyMethod
Auto Trait Implementations§
impl Freeze for SimplifyMethod
impl RefUnwindSafe for SimplifyMethod
impl Send for SimplifyMethod
impl Sync for SimplifyMethod
impl Unpin for SimplifyMethod
impl UnwindSafe for SimplifyMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more