1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#![crate_name = "gdal"]
#![crate_type = "lib"]
extern crate failure;
#[macro_use]
extern crate failure_derive;
extern crate gdal_sys;
extern crate geo_types;
extern crate libc;
extern crate num_traits;
pub use version::version_info;
pub mod config;
pub mod errors;
mod gdal_major_object;
pub mod metadata;
pub mod raster;
pub mod spatial_ref;
mod utils;
pub mod vector;
pub mod version;
#[cfg(test)]
fn assert_almost_eq(a: f64, b: f64) {
let f: f64 = a / b;
assert!(f < 1.00001);
assert!(f > 0.99999);
}