pub struct PolygonizeOptions {
pub connectivity: Connectivity,
pub nodata: Option<f64>,
pub nodata_tolerance: f64,
pub transform: Option<GeoTransform>,
pub simplify_tolerance: f64,
pub min_area: f64,
pub boundary_method: BoundaryMethod,
}Expand description
Options controlling raster polygonization behavior.
Fields§
§connectivity: ConnectivityPixel connectivity for connected component labeling.
Default: Connectivity::Eight.
nodata: Option<f64>Value treated as nodata (background). Pixels matching this value
(within nodata_tolerance) receive label 0 and are excluded from
the output polygons. Default: None (all values are data).
nodata_tolerance: f64Tolerance for comparing pixel values against nodata.
Default: 1e-10.
transform: Option<GeoTransform>Optional GeoTransform for converting pixel coordinates to world
coordinates. If None, output coordinates are in pixel space.
simplify_tolerance: f64If > 0.0, apply Douglas-Peucker simplification to output polygons
with this tolerance. Default: 0.0 (disabled).
min_area: f64Minimum polygon area (in output coordinate units). Polygons smaller
than this are dropped. Default: 0.0 (keep all).
boundary_method: BoundaryMethodBoundary extraction method. Default: BoundaryMethod::PixelEdge.
Trait Implementations§
Source§impl Clone for PolygonizeOptions
impl Clone for PolygonizeOptions
Source§fn clone(&self) -> PolygonizeOptions
fn clone(&self) -> PolygonizeOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PolygonizeOptions
impl Debug for PolygonizeOptions
Auto Trait Implementations§
impl Freeze for PolygonizeOptions
impl RefUnwindSafe for PolygonizeOptions
impl Send for PolygonizeOptions
impl Sync for PolygonizeOptions
impl Unpin for PolygonizeOptions
impl UnsafeUnpin for PolygonizeOptions
impl UnwindSafe for PolygonizeOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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