#geospatial #coordinates #transforms #transformations

geomorph

Simple conversion between different coordinate systems

8 releases (2 stable)

1.1.0 Dec 8, 2019
1.0.0 Aug 20, 2018
0.4.0 Jun 19, 2018
0.3.0 Jun 12, 2018
0.1.0 Jun 5, 2018

#112 in Geospatial

Download history 27/week @ 2023-05-20 90/week @ 2023-05-27 88/week @ 2023-06-03 76/week @ 2023-06-10 75/week @ 2023-06-17 88/week @ 2023-06-24 64/week @ 2023-07-01 16/week @ 2023-07-08 38/week @ 2023-07-15 52/week @ 2023-07-22 102/week @ 2023-07-29 60/week @ 2023-08-05 75/week @ 2023-08-12 19/week @ 2023-08-19 63/week @ 2023-08-26 69/week @ 2023-09-02

233 downloads per month

MIT license

38KB
1K SLoC

GeoMorph

Build Status Latest version Documentation

Simple conversion between different coordinate systems without external wrappers injection

Code Example

use geomorph::*;

fn main() {
    let lat: f64 = -23.0095839;
    let lon: f64 = -43.4361816;
    
    let coord = coord::Coord::new(lat, lon);
    let utm: Utm = coord.clone().into();
    println!("coord: {}", coord);
    println!("utm: {}", utm);
    // Will print:
    //  coord: (-23.0095839, -43.4361816)
    //  utm: 23K 660265 7454564
}

lib.rs:

Simple conversion between different coordinate systems without external wrappers injection

Code Example

use geomorph::*;

fn main() {
    let lat: f64 = -23.0095839;
    let lon: f64 = -43.4361816;
    
    let coord = coord::Coord::new(lat, lon);
    let utm: utm::Utm = coord.clone().into();
    println!("coord: {}", coord);
    println!("utm: {}", utm);
    // Will print:
    //  coord: (-23.0095839, -43.4361816)
    //  utm: 23K 660265 7454564
}

Dependencies

~275KB