pub struct CollapseOptions {
pub min_polygon_area: f64,
pub min_linestring_length: Option<f64>,
}Expand description
Options that govern when a feature is considered small enough to collapse.
Fields§
§min_polygon_area: f64Area threshold (in the polygon’s coordinate units squared).
Polygons whose absolute area is strictly less than this value are collapsed
to a point. Use 0.0 to disable polygon collapsing.
min_linestring_length: Option<f64>Length threshold for linestrings (in coordinate units).
When Some(len), linestrings shorter than len are collapsed to a point.
None disables linestring collapsing entirely.
Implementations§
Trait Implementations§
Source§impl Clone for CollapseOptions
impl Clone for CollapseOptions
Source§fn clone(&self) -> CollapseOptions
fn clone(&self) -> CollapseOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CollapseOptions
impl Debug for CollapseOptions
Auto Trait Implementations§
impl Freeze for CollapseOptions
impl RefUnwindSafe for CollapseOptions
impl Send for CollapseOptions
impl Sync for CollapseOptions
impl Unpin for CollapseOptions
impl UnsafeUnpin for CollapseOptions
impl UnwindSafe for CollapseOptions
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