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

Methods

impl Utm
[src]

Return a new Utm instance.

Inspired on the work of Rafael Palacios.

Auto Trait Implementations

impl Send for Utm

impl Sync for Utm