1 unstable release
0.1.0 | Feb 15, 2019 |
---|
#197 in Geospatial
30 downloads per month
290KB
117 lines
rijksdriehoek.rs
Convert coordinates between rijksdriehoek and wgs84.
Getting Started
rijksdriehoek.rs is available on crates.io. It is recommended to look there for the newest released version, as well as links to the newest builds of the docs.
At the point of the last update of this README, the latest published version could be used like this:
Add the following dependency to your Cargo manifest...
[dependencies]
rijksdriehoek = "0.1.0"
...and see the docs for how to use it.
Example
use rijksdriehoek::*;
fn main() {
let (x, y): (f32, f32) = wgs84_to_rijksdriehoek(52.37453253, 4.88352559);
println!("Convert wgs84 lat=52.37453253, lon=4.88352559 to rijksdriehoek x={} y={}", x , y);
let (lat, lon): (f32, f32) = rijksdriehoek_to_wgs84(120700.723, 487525.502);
println!("convert rijksdriehoek x=120700.723, y=487525.502 to wgs84 lat={} lon={}", lat, lon);
}
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.