Skip to main content

geotiff_core/
metadata.rs

1/// Parsed geospatial metadata from GeoKeys and model tags.
2#[derive(Debug, Clone)]
3pub struct GeoMetadata {
4    /// EPSG code for the coordinate reference system, if present.
5    pub epsg: Option<u32>,
6    /// Model tiepoints: (I, J, K, X, Y, Z) tuples.
7    pub tiepoints: Vec<[f64; 6]>,
8    /// Pixel scale: (ScaleX, ScaleY, ScaleZ).
9    pub pixel_scale: Option<[f64; 3]>,
10    /// 4x4 model transformation matrix (row-major), if present.
11    pub transformation: Option<[f64; 16]>,
12    /// Nodata value as a string (parsed from GDAL_NODATA tag).
13    pub nodata: Option<String>,
14    /// Number of bands (samples per pixel).
15    pub band_count: u32,
16    /// Image width in pixels.
17    pub width: u32,
18    /// Image height in pixels.
19    pub height: u32,
20    /// Geographic bounds derived from the transform.
21    pub geo_bounds: Option<[f64; 4]>,
22}