Struct gdal::raster::rasterband::RasterBand
[−]
[src]
pub struct RasterBand<'a> { /* fields omitted */ }
Methods
impl<'a> RasterBand<'a>
[src]
fn owning_dataset(&self) -> &'a Dataset
[src]
unsafe fn _with_c_ptr(
c_rasterband: *const c_void,
owning_dataset: &'a Dataset
) -> Self
[src]
c_rasterband: *const c_void,
owning_dataset: &'a Dataset
) -> Self
fn read_as<T: Copy + GdalType>(
&self,
window: (isize, isize),
window_size: (usize, usize),
size: (usize, usize)
) -> Result<Buffer<T>>
[src]
&self,
window: (isize, isize),
window_size: (usize, usize),
size: (usize, usize)
) -> Result<Buffer<T>>
Read a 'Buffer
Arguments
- band_index - the band_index
- window - the window position from top left
- window_size - the window size (GDAL will interpolate data if window_size != buffer_size)
- buffer_size - the desired size of the 'Buffer'
fn read_band_as<T: Copy + GdalType>(&self) -> Result<Buffer<T>>
[src]
fn write<T: GdalType + Copy>(
&self,
window: (isize, isize),
window_size: (usize, usize),
buffer: Buffer<T>
) -> Result<()>
[src]
&self,
window: (isize, isize),
window_size: (usize, usize),
buffer: Buffer<T>
) -> Result<()>
Arguments
- band_index - the band_index
- window - the window position from top left
- window_size - the window size (GDAL will interpolate data if window_size != Buffer.size)