Struct gdal_sys::GDALRasterIOExtraArg
source · [−]#[repr(C)]pub struct GDALRasterIOExtraArg {
pub nVersion: c_int,
pub eResampleAlg: Type,
pub pfnProgress: GDALProgressFunc,
pub pProgressData: *mut c_void,
pub bFloatingPointWindowValidity: c_int,
pub dfXOff: f64,
pub dfYOff: f64,
pub dfXSize: f64,
pub dfYSize: f64,
}Expand description
Structure to pass extra arguments to RasterIO() method, must be initialized with INIT_RASTERIO_EXTRA_ARG @since GDAL 2.0
Fields
nVersion: c_intVersion of structure (to allow future extensions of the structure)
eResampleAlg: TypeResampling algorithm
pfnProgress: GDALProgressFuncProgress callback
pProgressData: *mut c_voidProgress callback user data
bFloatingPointWindowValidity: c_intIndicate if dfXOff, dfYOff, dfXSize and dfYSize are set. Mostly reserved from the VRT driver to communicate a more precise source window. Must be such that dfXOff - nXOff < 1.0 and dfYOff - nYOff < 1.0 and nXSize - dfXSize < 1.0 and nYSize - dfYSize < 1.0
dfXOff: f64Pixel offset to the top left corner. Only valid if bFloatingPointWindowValidity = TRUE
dfYOff: f64Line offset to the top left corner. Only valid if bFloatingPointWindowValidity = TRUE
dfXSize: f64Width in pixels of the area of interest. Only valid if bFloatingPointWindowValidity = TRUE
dfYSize: f64Height in pixels of the area of interest. Only valid if bFloatingPointWindowValidity = TRUE
Trait Implementations
sourceimpl Clone for GDALRasterIOExtraArg
impl Clone for GDALRasterIOExtraArg
sourcefn clone(&self) -> GDALRasterIOExtraArg
fn clone(&self) -> GDALRasterIOExtraArg
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for GDALRasterIOExtraArg
impl Debug for GDALRasterIOExtraArg
impl Copy for GDALRasterIOExtraArg
Auto Trait Implementations
impl RefUnwindSafe for GDALRasterIOExtraArg
impl !Send for GDALRasterIOExtraArg
impl !Sync for GDALRasterIOExtraArg
impl Unpin for GDALRasterIOExtraArg
impl UnwindSafe for GDALRasterIOExtraArg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more