import { Hemisphere, Point } from '@ngageoint/grid-js'; import { MGRS } from '../MGRS'; /** * Universal Transverse Mercator Projection */ export declare class UTM { /** * Zone number */ private readonly zone; /** * Hemisphere */ private readonly hemisphere; /** * Easting */ private readonly easting; /** * Northing */ private readonly northing; /** * UTM string pattern */ private static readonly utmPattern; /** * Create * * @param zone * zone number * @param hemisphere * hemisphere * @param easting * easting * @param northing * northing * @return UTM */ static create(zone: number, hemisphere: Hemisphere, easting: number, northing: number): UTM; /** * Create a point from the UTM attributes * * @param zone * zone number * @param hemisphere * hemisphere * @param easting * easting * @param northing * northing * @return point */ static point(zone: number, hemisphere: Hemisphere, easting: number, northing: number): Point; /** * Constructor * * @param zone * zone number * @param hemisphere * hemisphere * @param easting * easting * @param northing * northing */ constructor(zone: number, hemisphere: Hemisphere, easting: number, northing: number); /** * Get the zone number * * @return zone number */ getZone(): number; /** * Get the hemisphere * * @return hemisphere */ getHemisphere(): Hemisphere; /** * Get the easting * * @return easting */ getEasting(): number; /** * Get the northing * * @return northing */ getNorthing(): number; /** * Convert to a point * * @return point */ toPoint(): Point; /** * Convert to a MGRS coordinate * * @return MGRS */ toMGRS(): MGRS; /** * Format to a UTM string * * @return UTM string */ format(): string; /** * {@inheritDoc} */ toString(): string; /** * Return whether the given string is valid UTM string * * @param utm * potential UTM string * @return true if UTM string is valid, false otherwise */ static isUTM(utm: string): boolean; /** * Parse a UTM value (Zone N|S Easting Northing) * * @param utm * UTM value * @return UTM * @throws ParseException * upon failure to parse UTM value */ static parse(utm: string): UTM; /** * Create from a coordinate, zone number, and hemisphere * * @param point * coordinate * @param zone * zone number * @param hemisphere * hemisphere * @return UTM */ static from(point: Point, zone?: number, hemisphere?: Hemisphere): UTM; } //# sourceMappingURL=UTM.d.ts.map