UNPKG

utm-utils

Version:

Super Light-Weight Utility Functions for Working with Universal Transverse Mercator

21 lines (18 loc) 477 B
// assumes that projection is UTM function getHemisphere(projection) { const projstr = projection.toString(); if (projstr.startsWith("326") || projstr.startsWith("269")) { return "N"; } else if (projstr.startsWith("327")) { return "S"; } } if (typeof define === "function" && define.amd) { define(function () { return getHemisphere; }); } if (typeof module === "object") { module.exports = getHemisphere; module.exports.default = getHemisphere; }