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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more