#coordinates #transformation #transform #geospatial

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

#140 in Geospatial

Download history 2/week @ 2023-11-27 3/week @ 2023-12-04 8/week @ 2024-01-15 1/week @ 2024-01-22 1/week @ 2024-02-12 20/week @ 2024-02-19 20/week @ 2024-02-26 13/week @ 2024-03-04 25/week @ 2024-03-11

78 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