From 52468129ca8c1dfc43d0727acccd4aa6aa61ab1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Rocha?= Date: Thu, 14 Mar 2019 22:17:45 +0100 Subject: [PATCH] Without reproject test. --- src/raster/tests.rs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/raster/tests.rs b/src/raster/tests.rs index 576971d5..a502c091 100644 --- a/src/raster/tests.rs +++ b/src/raster/tests.rs @@ -365,27 +365,3 @@ fn test_get_offset() { let offset = rasterband.offset(); assert_eq!(offset, Some(0.0)); } - -#[test] -fn test_reproject() { - let driver = Driver::get("MEM").unwrap(); - let size_x = 100; - let size_y = 50; - let bands = 3; - let filename = ""; // Don't need concrete filename because is a file in memory - let destiny = driver.create(filename, size_x, size_y, bands).unwrap(); - let source = Dataset::open(fixture!("tinybluemarble.tif")).unwrap(); - - println!("{:?}", source.geo_transform().expect("Geotransform vector.")); - - // c = x-coordinate of the upper-left corner of the upper-left pixel - // a = width of a pixel - // b = row rotation (typically zero) - // f = y-coordinate of the of the upper-left corner of the upper-left pixel - // d = column rotation (typically zero) - // e = height of a pixel (typically negative) - let transform = [0.0, 10.0, 0.0, 0.0, 0.0, -10.0]; - assert!(destiny.set_geo_transform(&transform).is_ok()); - assert!(warp::reproject(&source, &destiny).is_ok()); - println!("{:?}", destiny.geo_transform().expect("Geotransform vector.")); -}