Struct gdal::raster::dataset::Dataset
[−]
[src]
pub struct Dataset { /* fields omitted */ }
Methods
impl Dataset
[src]
fn open(path: &Path) -> Result<Dataset>
[src]
unsafe fn _with_c_ptr(c_dataset: *const c_void) -> Dataset
[src]
unsafe fn _c_ptr(&self) -> *const c_void
[src]
fn rasterband<'a>(&'a self, band_index: isize) -> Result<RasterBand<'a>>
[src]
fn size(&self) -> (usize, usize)
[src]
fn driver(&self) -> Driver
[src]
fn count(&self) -> isize
[src]
fn projection(&self) -> String
[src]
fn set_projection(&self, projection: &str) -> Result<()>
[src]
fn set_geo_transform(&self, tr: &GeoTransform) -> Result<()>
[src]
fn geo_transform(&self) -> Result<GeoTransform>
[src]
fn create_copy(&self, driver: Driver, filename: &str) -> Result<Dataset>
[src]
fn band_type(&self, band_index: isize) -> Result<GDALDataType>
[src]
fn read_raster(
&self,
band_index: isize,
window: (isize, isize),
window_size: (usize, usize),
size: (usize, usize)
) -> Result<ByteBuffer>
[src]
&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'
fn read_full_raster_as<T: Copy + GdalType>(
&self,
band_index: isize
) -> Result<Buffer<T>>
[src]
&self,
band_index: isize
) -> Result<Buffer<T>>
fn read_raster_as<T: Copy + GdalType>(
&self,
band_index: isize,
window: (isize, isize),
window_size: (usize, usize),
size: (usize, usize)
) -> Result<Buffer<T>>
[src]
&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'
fn write_raster<T: GdalType + Copy>(
&self,
band_index: isize,
window: (isize, isize),
window_size: (usize, usize),
buffer: Buffer<T>
) -> Result<()>
[src]
&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
impl Metadata for Dataset
[src]
fn description(&self) -> Result<String>
[src]
fn metadata_item(&self, key: &str, domain: &str) -> Option<String>
[src]
fn set_metadata_item(
&mut self,
key: &str,
value: &str,
domain: &str
) -> Result<()>
[src]
&mut self,
key: &str,
value: &str,
domain: &str
) -> Result<()>