pub struct Dataset { /* private fields */ }
Implementations
sourceimpl Dataset
impl Dataset
pub fn open(path: &Path) -> Result<Dataset>
pub unsafe fn _with_c_ptr(c_dataset: GDALDatasetH) -> Dataset
pub unsafe fn _c_ptr(&self) -> GDALDatasetH
pub fn rasterband(&self, band_index: isize) -> Result<RasterBand<'_>>
pub fn size(&self) -> (usize, usize)
pub fn driver(&self) -> Driver
pub fn count(&self) -> isize
pub fn projection(&self) -> String
pub fn set_projection(&self, projection: &str) -> Result<()>
pub fn set_geo_transform(&self, tr: &GeoTransform) -> Result<()>
pub fn geo_transform(&self) -> Result<GeoTransform>
pub fn create_copy(&self, driver: &Driver, filename: &str) -> Result<Dataset>
pub fn band_type(&self, band_index: isize) -> Result<Type>
sourcepub fn read_raster(
&self,
band_index: isize,
window: (isize, isize),
window_size: (usize, usize),
size: (usize, usize)
) -> Result<ByteBuffer>
pub fn read_raster(
&self,
band_index: isize,
window: (isize, isize),
window_size: (usize, usize),
size: (usize, usize)
) -> Result<ByteBuffer>
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’
sourcepub fn read_full_raster_as<T: Copy + GdalType>(
&self,
band_index: isize
) -> Result<Buffer<T>>
pub fn read_full_raster_as<T: Copy + GdalType>(
&self,
band_index: isize
) -> Result<Buffer<T>>
sourcepub fn read_raster_as<T: Copy + GdalType>(
&self,
band_index: isize,
window: (isize, isize),
window_size: (usize, usize),
size: (usize, usize)
) -> Result<Buffer<T>>
pub fn read_raster_as<T: Copy + GdalType>(
&self,
band_index: isize,
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’
sourcepub fn write_raster<T: GdalType + Copy>(
&self,
band_index: isize,
window: (isize, isize),
window_size: (usize, usize),
buffer: &Buffer<T>
) -> Result<()>
pub fn write_raster<T: GdalType + Copy>(
&self,
band_index: isize,
window: (isize, isize),
window_size: (usize, usize),
buffer: &Buffer<T>
) -> Result<()>
Write 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)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Dataset
impl !Send for Dataset
impl !Sync for Dataset
impl Unpin for Dataset
impl UnwindSafe for Dataset
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more