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 |
#71 in #geospatial
6KB
66 lines
rust-world-file
Rust read/write support for world files.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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);