Struct geomorph::utm::Utm [−][src]
pub struct Utm { pub easting: f64, pub northing: f64, pub north: bool, pub zone: i32, pub band: char, }
Holds attributes for Universal Transverse Mercator (UTM) coordinate system
Examples
use std::error::Error; extern crate geomorph; fn try_main() -> Result<geomorph::utm::Utm, geomorph::ParseError> { let lat: f64 = -23.0095839; let lon: f64 = -43.4361816; let coord = geomorph::coord::Coord::new(lat, lon)?; geomorph::utm::Utm::new(coord) } fn main() { let utm = try_main().unwrap(); }
Fields
easting: f64
northing: f64
north: bool
zone: i32
band: char
Methods
impl Utm
[src]
impl Utm
pub fn new(coord: Coord) -> Result<Utm, ParseError>
[src]
pub fn new(coord: Coord) -> Result<Utm, ParseError>
Return a new Utm instance.
Inspired on the work of Rafael Palacios.