pub struct RasterConfig {
pub cols: usize,
pub rows: usize,
pub bands: usize,
pub x_min: f64,
pub y_min: f64,
pub cell_size: f64,
pub cell_size_y: Option<f64>,
pub nodata: f64,
pub data_type: DataType,
pub crs: CrsInfo,
pub metadata: Vec<(String, String)>,
}Expand description
Parameters used to construct a new Raster.
Fields§
§cols: usizeNumber of columns (samples).
rows: usizeNumber of rows (lines).
bands: usizeNumber of bands.
x_min: f64X coordinate of the west edge (left).
y_min: f64Y coordinate of the south edge (bottom).
cell_size: f64Cell size (assumed square unless cell_size_y is set).
cell_size_y: Option<f64>Optional distinct Y cell size (negative = top-down raster).
If None, cell_size is used (positive, bottom-up convention).
nodata: f64No-data sentinel value.
data_type: DataTypeUnderlying storage type.
crs: CrsInfoSpatial reference system.
metadata: Vec<(String, String)>Free-form metadata key/value pairs.
Trait Implementations§
Source§impl Clone for RasterConfig
impl Clone for RasterConfig
Source§impl Debug for RasterConfig
impl Debug for RasterConfig
Auto Trait Implementations§
impl Freeze for RasterConfig
impl RefUnwindSafe for RasterConfig
impl Send for RasterConfig
impl Sync for RasterConfig
impl Unpin for RasterConfig
impl UnsafeUnpin for RasterConfig
impl UnwindSafe for RasterConfig
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
Source§impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
Source§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> T
Creates a default value with the given context.
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> ⓘ
Converts
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> ⓘ
Converts
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