2 releases (1 stable)
Uses old Rust 2015
1.0.0 | May 27, 2018 |
---|---|
0.1.0 | Jan 11, 2016 |
#189 in Geospatial
18KB
376 lines
lambert-rust
lambert-rust is a crate helping to convert Lambert coordinates to WGS84.
Usage
let point = Point::new(369419.0, 1986498.0, 0.0)
.wgs84_from_meter(Zone::Lambert93)
.convert_unit(AngleUnit::Radian, AngleUnit::Degree);
println!("WGS84 Lat:{}, Lon:{}", point.y, point.x);
lib.rs
:
Lambert to WGS84 projection conversion crate
Examples
extern crate lambert;
use lambert::{Point, AngleUnit, Zone};
// Enter coordinates in point
let point = Point::new(369419.0, 1986498.0, 0.0)
.wgs84_from_meter(Zone::Lambert93)
.convert_unit(AngleUnit::Radian, AngleUnit::Degree);
println!("WGS84 Lat:{}, Lon:{}", point.y, point.x);