#world #geospatial #read-write #file #world-files

world-file

Rust read/write support for world files

3 unstable releases

Uses old Rust 2015

0.1.0 Nov 22, 2016
0.0.2 Jan 11, 2016
0.0.1 Jan 15, 2015

#63 in #geospatial

23 downloads per month

MIT/Apache

6KB
66 lines

rust-world-file

Documentation

Rust read/write support for world files.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

use world_file::WorldFile;

let world_file_txt = "\
32.0
0.0
0.0
-32.0
691200.0
4576000.0";

let world_file: WorldFile = world_file_txt.parse().unwrap();

assert_eq!(world_file.x_scale, 32.0);
assert_eq!(world_file.y_skew, 0.0);
assert_eq!(world_file.x_skew, 0.0);
assert_eq!(world_file.y_scale, -32.0);
assert_eq!(world_file.x_coord, 691200.0);
assert_eq!(world_file.y_coord, 4576000.0);

No runtime deps