pub struct SourceProperties {
pub width: u64,
pub height: u64,
pub band_count: usize,
pub data_type: RasterDataType,
pub geo_transform: Option<GeoTransform>,
pub nodata: NoDataValue,
}Expand description
Cached source properties
Fields§
§width: u64Raster width
height: u64Raster height
band_count: usizeNumber of bands
data_type: RasterDataTypeData type
geo_transform: Option<GeoTransform>GeoTransform
nodata: NoDataValueNoData value
Implementations§
Source§impl SourceProperties
impl SourceProperties
Sourcepub fn new(
width: u64,
height: u64,
band_count: usize,
data_type: RasterDataType,
) -> Self
pub fn new( width: u64, height: u64, band_count: usize, data_type: RasterDataType, ) -> Self
Creates new source properties
Sourcepub fn with_geo_transform(self, geo_transform: GeoTransform) -> Self
pub fn with_geo_transform(self, geo_transform: GeoTransform) -> Self
Sets the GeoTransform
Sourcepub fn with_nodata(self, nodata: NoDataValue) -> Self
pub fn with_nodata(self, nodata: NoDataValue) -> Self
Sets the NoData value
Trait Implementations§
Source§impl Clone for SourceProperties
impl Clone for SourceProperties
Source§fn clone(&self) -> SourceProperties
fn clone(&self) -> SourceProperties
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 moreSource§impl Debug for SourceProperties
impl Debug for SourceProperties
Source§impl<'de> Deserialize<'de> for SourceProperties
impl<'de> Deserialize<'de> for SourceProperties
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SourceProperties
impl PartialEq for SourceProperties
Source§impl Serialize for SourceProperties
impl Serialize for SourceProperties
impl StructuralPartialEq for SourceProperties
Auto Trait Implementations§
impl Freeze for SourceProperties
impl RefUnwindSafe for SourceProperties
impl Send for SourceProperties
impl Sync for SourceProperties
impl Unpin for SourceProperties
impl UnsafeUnpin for SourceProperties
impl UnwindSafe for SourceProperties
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