#wgs84 #coordinates #transform #rd

rijksdriehoek

Convert coordinates between rijksdriehoek and wgs84

1 unstable release

0.1.0 Feb 15, 2019

#197 in Geospatial

30 downloads per month

MIT/Apache

290KB
117 lines

rijksdriehoek.rs

Convert coordinates between rijksdriehoek and wgs84.

Travis-CI Status Latest version Documentation License

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

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.

Dependencies