#geospatial #transformation #coordinates #transform #wrapper

geomorph

Simple conversion between different coordinate systems

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

#50 in Geospatial

Download history 24/week @ 2024-11-16 11/week @ 2024-11-23 3/week @ 2024-11-30 52/week @ 2024-12-07 19/week @ 2024-12-14 8/week @ 2024-12-21 10/week @ 2024-12-28 10/week @ 2025-01-04 8/week @ 2025-01-11 12/week @ 2025-01-18 29/week @ 2025-01-25 138/week @ 2025-02-01 55/week @ 2025-02-08 53/week @ 2025-02-15 54/week @ 2025-02-22 67/week @ 2025-03-01

238 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