pub struct DatasetInfo {
pub format: DatasetFormat,
pub width: Option<u32>,
pub height: Option<u32>,
pub band_count: u32,
pub layer_count: u32,
pub crs: Option<String>,
pub geotransform: Option<GeoTransform>,
}Expand description
Basic dataset metadata — analogous to GDALDataset info.
Fields§
§format: DatasetFormatDetected format
width: Option<u32>Width in pixels (raster) or None (vector-only)
height: Option<u32>Height in pixels (raster) or None (vector-only)
band_count: u32Number of raster bands
layer_count: u32Number of vector layers
crs: Option<String>Coordinate reference system (WKT, EPSG code, or PROJ string)
geotransform: Option<GeoTransform>Geotransform: [origin_x, pixel_width, rotation_x, origin_y, rotation_y, pixel_height]
Trait Implementations§
Source§impl Clone for DatasetInfo
impl Clone for DatasetInfo
Source§fn clone(&self) -> DatasetInfo
fn clone(&self) -> DatasetInfo
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 moreAuto Trait Implementations§
impl Freeze for DatasetInfo
impl RefUnwindSafe for DatasetInfo
impl Send for DatasetInfo
impl Sync for DatasetInfo
impl Unpin for DatasetInfo
impl UnsafeUnpin for DatasetInfo
impl UnwindSafe for DatasetInfo
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