pub struct GeoMetadata {
pub epsg: Option<u32>,
pub tiepoints: Vec<[f64; 6]>,
pub pixel_scale: Option<[f64; 3]>,
pub transformation: Option<[f64; 16]>,
pub nodata: Option<String>,
pub band_count: u32,
pub width: u32,
pub height: u32,
pub geo_bounds: Option<[f64; 4]>,
}Expand description
Parsed geospatial metadata from GeoKeys and model tags.
Fields§
§epsg: Option<u32>EPSG code for the coordinate reference system, if present.
tiepoints: Vec<[f64; 6]>Model tiepoints: (I, J, K, X, Y, Z) tuples.
pixel_scale: Option<[f64; 3]>Pixel scale: (ScaleX, ScaleY, ScaleZ).
transformation: Option<[f64; 16]>4x4 model transformation matrix (row-major), if present.
nodata: Option<String>Nodata value as a string (parsed from GDAL_NODATA tag).
band_count: u32Number of bands (samples per pixel).
width: u32Image width in pixels.
height: u32Image height in pixels.
geo_bounds: Option<[f64; 4]>Geographic bounds derived from the transform.
Trait Implementations§
Source§impl Clone for GeoMetadata
impl Clone for GeoMetadata
Source§fn clone(&self) -> GeoMetadata
fn clone(&self) -> GeoMetadata
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 GeoMetadata
impl RefUnwindSafe for GeoMetadata
impl Send for GeoMetadata
impl Sync for GeoMetadata
impl Unpin for GeoMetadata
impl UnsafeUnpin for GeoMetadata
impl UnwindSafe for GeoMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more