11 releases (5 stable)

2.0.2 Sep 13, 2024
1.1.0 Dec 8, 2019
1.0.0 Aug 20, 2018
0.4.0 Jun 19, 2018
0.1.0 Jun 5, 2018

#47 in Geospatial

Download history 169/week @ 2024-08-06 164/week @ 2024-08-13 83/week @ 2024-08-20 64/week @ 2024-08-27 79/week @ 2024-09-03 430/week @ 2024-09-10 102/week @ 2024-09-17 115/week @ 2024-09-24 57/week @ 2024-10-01 39/week @ 2024-10-08 13/week @ 2024-10-15 7/week @ 2024-10-22 12/week @ 2024-10-29 20/week @ 2024-11-05 9/week @ 2024-11-12 25/week @ 2024-11-19

66 downloads per month

MIT license

35KB
950 lines

Geomorph

Build Status Latest version Documentation

Simple conversion between different coordinate systems without external wrappers injection

Example

use geomorph::{Coord, Mgrs, MgrsPrecision, Utm};

let lat: f64 = -23.0095839;
let lon: f64 = -43.4361816;

let coord = Coord::new(lat, lon);
let utm = Utm::from(coord);
let mgrs = Mgrs::from_latlon(lat, lon);

println!("coord: {}", coord);
println!("utm: {}", utm);
println!(
    "mgrs precision 10km: {}",
    mgrs.with_precision(MgrsPrecision::P10km)
)

Dependencies

~270KB