message: Add apply_geo_transform
diff: @@ -43,6 +43,19 @@ pub use dataset::{
  pub use driver::Driver;
  pub use metadata::Metadata;
  +/// Apply GeoTransform to x/y coordinate.
  +/// Wraps [GDALApplyGeoTransform].
  +///
  +/// [GDALApplyGeoTransform]: https://gdal.org/api/raster_c_api.html#_CPPv421GDALApplyGeoTransformPdddPdPd
  +pub fn apply_geo_transform(geo_transform: &GeoTransform, pixel: f64, line: f64) -> (f64, f64) {
  + let mut geo_x: f64 = 0.;
  + let mut geo_y: f64 = 0.;
  + unsafe {
  + gdal_sys::GDALApplyGeoTransform(geo_transform.as_ptr() as *mut f64, pixel, line, &mut geo_x, &mut geo_y);
  + }
  + (geo_x, geo_y)
  +}
  +
  #[cfg(test)]
  fn assert_almost_eq(a: f64, b: f64) {
  let f: f64 = a / b;
  