geomorph

Crates.iogeomorph
lib.rsgeomorph
version2.0.2
sourcesrc
created_at2018-06-05 23:19:45.198179
updated_at2024-09-13 19:59:09.661539
descriptionSimple conversion between different coordinate systems
homepage
repositoryhttps://github.com/vlopes11/geomorph
max_upload_size
id68789
size36,745
Victor Lopes (vlopes11)

documentation

README

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)
)
Commit count: 28

cargo fmt