Crate geomorph

Source
Expand description

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

Structs§

Coord
Holds a pair for latitude and longitude coordinates
Datum
Holds conventional datum information
Mgrs
UTM/UPS extension for MGRS formatting
Utm
Holds attributes for Universal Transverse Mercator (UTM) coordinate system

Enums§

MgrsPrecision
MGRS precision rate.