Skip to content

vlopes11/geomorph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
)

About

Rust implementation to simply convert between coordinate systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages