#[repr(C)]
pub struct GDALWarpOptions {
Show 35 fields pub papszWarpOptions: *mut *mut c_char, pub dfWarpMemoryLimit: f64, pub eResampleAlg: Type, pub eWorkingDataType: Type, pub hSrcDS: GDALDatasetH, pub hDstDS: GDALDatasetH, pub nBandCount: c_int, pub panSrcBands: *mut c_int, pub panDstBands: *mut c_int, pub nSrcAlphaBand: c_int, pub nDstAlphaBand: c_int, pub padfSrcNoDataReal: *mut f64, pub padfSrcNoDataImag: *mut f64, pub padfDstNoDataReal: *mut f64, pub padfDstNoDataImag: *mut f64, pub pfnProgress: GDALProgressFunc, pub pProgressArg: *mut c_void, pub pfnTransformer: GDALTransformerFunc, pub pTransformerArg: *mut c_void, pub papfnSrcPerBandValidityMaskFunc: *mut GDALMaskFunc, pub papSrcPerBandValidityMaskFuncArg: *mut *mut c_void, pub pfnSrcValidityMaskFunc: GDALMaskFunc, pub pSrcValidityMaskFuncArg: *mut c_void, pub pfnSrcDensityMaskFunc: GDALMaskFunc, pub pSrcDensityMaskFuncArg: *mut c_void, pub pfnDstDensityMaskFunc: GDALMaskFunc, pub pDstDensityMaskFuncArg: *mut c_void, pub pfnDstValidityMaskFunc: GDALMaskFunc, pub pDstValidityMaskFuncArg: *mut c_void, pub pfnPreWarpChunkProcessor: Option<unsafe extern "C" fn(pKern: *mut c_void, pArg: *mut c_void) -> Type>, pub pPreWarpProcessorArg: *mut c_void, pub pfnPostWarpChunkProcessor: Option<unsafe extern "C" fn(pKern: *mut c_void, pArg: *mut c_void) -> Type>, pub pPostWarpProcessorArg: *mut c_void, pub hCutline: *mut c_void, pub dfCutlineBlendDist: f64,
}
Expand description

Warp control options for use with GDALWarpOperation::Initialize()

Fields§

§papszWarpOptions: *mut *mut c_char§dfWarpMemoryLimit: f64

In bytes, 0.0 for internal default

§eResampleAlg: Type

Resampling algorithm to use

§eWorkingDataType: Type

data type to use during warp operation, GDT_Unknown lets the algorithm select the type

§hSrcDS: GDALDatasetH

Source image dataset.

§hDstDS: GDALDatasetH

Destination image dataset - may be NULL if only using GDALWarpOperation::WarpRegionToBuffer().

§nBandCount: c_int

Number of bands to process, may be 0 to select all bands.

§panSrcBands: *mut c_int

The band numbers for the source bands to process (1 based)

§panDstBands: *mut c_int

The band numbers for the destination bands to process (1 based)

§nSrcAlphaBand: c_int

The source band so use as an alpha (transparency) value, 0=disabled

§nDstAlphaBand: c_int

The dest. band so use as an alpha (transparency) value, 0=disabled

§padfSrcNoDataReal: *mut f64

The “nodata” value real component for each input band, if NULL there isn’t one

§padfSrcNoDataImag: *mut f64

The “nodata” value imaginary component - may be NULL even if real component is provided. This value is not used to flag invalid values. Only the real component is used.

§padfDstNoDataReal: *mut f64

The “nodata” value real component for each output band, if NULL there isn’t one

§padfDstNoDataImag: *mut f64

The “nodata” value imaginary component - may be NULL even if real component is provided. Note that warp operations only use real component for flagging invalid data.

§pfnProgress: GDALProgressFunc

GDALProgressFunc() compatible progress reporting function, or NULL if there isn’t one.

§pProgressArg: *mut c_void

Callback argument to be passed to pfnProgress.

§pfnTransformer: GDALTransformerFunc

Type of spatial point transformer function

§pTransformerArg: *mut c_void

Handle to image transformer setup structure

§papfnSrcPerBandValidityMaskFunc: *mut GDALMaskFunc

Unused. Must be NULL

§papSrcPerBandValidityMaskFuncArg: *mut *mut c_void

Unused. Must be NULL

§pfnSrcValidityMaskFunc: GDALMaskFunc

Unused. Must be NULL

§pSrcValidityMaskFuncArg: *mut c_void

Unused. Must be NULL

§pfnSrcDensityMaskFunc: GDALMaskFunc

Unused. Must be NULL

§pSrcDensityMaskFuncArg: *mut c_void

Unused. Must be NULL

§pfnDstDensityMaskFunc: GDALMaskFunc

Unused. Must be NULL

§pDstDensityMaskFuncArg: *mut c_void

Unused. Must be NULL

§pfnDstValidityMaskFunc: GDALMaskFunc

Unused. Must be NULL

§pDstValidityMaskFuncArg: *mut c_void

Unused. Must be NULL

§pfnPreWarpChunkProcessor: Option<unsafe extern "C" fn(pKern: *mut c_void, pArg: *mut c_void) -> Type>

Unused. Must be NULL

§pPreWarpProcessorArg: *mut c_void

Unused. Must be NULL

§pfnPostWarpChunkProcessor: Option<unsafe extern "C" fn(pKern: *mut c_void, pArg: *mut c_void) -> Type>

Unused. Must be NULL

§pPostWarpProcessorArg: *mut c_void

Unused. Must be NULL

§hCutline: *mut c_void

Optional OGRPolygonH for a masking cutline.

§dfCutlineBlendDist: f64

Optional blending distance to apply across cutline in pixels, default is zero.

Trait Implementations§

source§

impl Clone for GDALWarpOptions

source§

fn clone(&self) -> GDALWarpOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GDALWarpOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for GDALWarpOptions

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.