pub struct VrtSource {
pub filename: SourceFilename,
pub source_band: usize,
pub window: Option<SourceWindow>,
pub nodata: Option<NoDataValue>,
pub data_type: Option<RasterDataType>,
pub properties: Option<SourceProperties>,
}Expand description
VRT source configuration
Fields§
§filename: SourceFilenameSource filename
source_band: usizeSource band (1-based index in source file)
window: Option<SourceWindow>Source window (optional, defaults to full extent)
nodata: Option<NoDataValue>NoData value override
data_type: Option<RasterDataType>Data type override
properties: Option<SourceProperties>Source properties (cached metadata)
Implementations§
Source§impl VrtSource
impl VrtSource
Sourcepub fn new(filename: SourceFilename, source_band: usize) -> Self
pub fn new(filename: SourceFilename, source_band: usize) -> Self
Creates a new VRT source
Sourcepub fn simple<P: AsRef<Path>>(path: P, band: usize) -> Self
pub fn simple<P: AsRef<Path>>(path: P, band: usize) -> Self
Creates a simple VRT source with default settings
Sourcepub fn with_window(self, window: SourceWindow) -> Self
pub fn with_window(self, window: SourceWindow) -> Self
Sets the source window
Sourcepub fn with_nodata(self, nodata: NoDataValue) -> Self
pub fn with_nodata(self, nodata: NoDataValue) -> Self
Sets the NoData value override
Sourcepub fn with_data_type(self, data_type: RasterDataType) -> Self
pub fn with_data_type(self, data_type: RasterDataType) -> Self
Sets the data type override
Sourcepub fn with_properties(self, properties: SourceProperties) -> Self
pub fn with_properties(self, properties: SourceProperties) -> Self
Sets the source properties
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VrtSource
impl<'de> Deserialize<'de> for VrtSource
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
impl StructuralPartialEq for VrtSource
Auto Trait Implementations§
impl Freeze for VrtSource
impl RefUnwindSafe for VrtSource
impl Send for VrtSource
impl Sync for VrtSource
impl Unpin for VrtSource
impl UnsafeUnpin for VrtSource
impl UnwindSafe for VrtSource
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