pub struct ReprojectionConfig {
pub src_width: u32,
pub src_height: u32,
pub dst_width: u32,
pub dst_height: u32,
pub src_geotransform: [f32; 6],
pub dst_inv_geotransform: [f32; 6],
pub resample_method: ResampleMethod,
pub nodata: Option<f32>,
}Expand description
Configuration for a reprojection operation.
Fields§
§src_width: u32Source raster width in pixels.
src_height: u32Source raster height in pixels.
dst_width: u32Destination raster width in pixels.
dst_height: u32Destination raster height in pixels.
src_geotransform: [f32; 6]Source geotransform [a, b, c, d, e, f] where:
x_geo = c + col * a + row * b
y_geo = f + col * d + row * e
dst_inv_geotransform: [f32; 6]Destination inverse geotransform (maps geo → pixel).
resample_method: ResampleMethodPixel resampling strategy.
nodata: Option<f32>Optional nodata sentinel value.
Implementations§
Trait Implementations§
Source§impl Clone for ReprojectionConfig
impl Clone for ReprojectionConfig
Source§fn clone(&self) -> ReprojectionConfig
fn clone(&self) -> ReprojectionConfig
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 moreAuto Trait Implementations§
impl Freeze for ReprojectionConfig
impl RefUnwindSafe for ReprojectionConfig
impl Send for ReprojectionConfig
impl Sync for ReprojectionConfig
impl Unpin for ReprojectionConfig
impl UnsafeUnpin for ReprojectionConfig
impl UnwindSafe for ReprojectionConfig
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