pub struct GeoTransform {
pub gt0: f64,
pub gt1: f64,
pub gt2: f64,
pub gt3: f64,
pub gt4: f64,
pub gt5: f64,
}Expand description
A geotransform is an affine transformation from the image coordinate space (row, column), also known as (pixel, line) to the georeferenced coordinate space (projected or geographic coordinates).
A geotransform consists in a set of 6 coefficients:
GT(0) x-coordinate of the upper-left corner of the upper-left pixel. GT(1) w-e pixel resolution / pixel width. GT(2) row rotation (typically zero). GT(3) y-coordinate of the upper-left corner of the upper-left pixel. GT(4) column rotation (typically zero). GT(5) n-s pixel resolution / pixel height (negative value for a north-up image).
Fields§
§gt0: f64x-coordinate of the upper-left corner of the upper-left pixel.
gt1: f64w-e pixel resolution / pixel width.
gt2: f64row rotation (typically zero).
gt3: f64y-coordinate of the upper-left corner of the upper-left pixel.
gt4: f64column rotation (typically zero).
gt5: f64n-s pixel resolution / pixel height (negative value for a north-up image).