{"id":18417838,"url":"https://github.com/danieljdufour/utm-utils","last_synced_at":"2025-04-07T12:32:52.352Z","repository":{"id":57389289,"uuid":"248485979","full_name":"DanielJDufour/utm-utils","owner":"DanielJDufour","description":"Utility Functions for Working with Universal Transverse Mercator","archived":false,"fork":false,"pushed_at":"2023-07-04T18:34:13.000Z","size":41,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T18:51:34.078Z","etag":null,"topics":["gis","mercator","projection","utm"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielJDufour.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-19T11:29:35.000Z","updated_at":"2023-08-13T00:44:34.000Z","dependencies_parsed_at":"2024-06-11T19:17:20.323Z","dependency_job_id":"6cb5a399-d242-475a-94b7-f1de513421c3","html_url":"https://github.com/DanielJDufour/utm-utils","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"b856f1c4b26cb1600d946e6b9b1dc9a0aa415d53"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Futm-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Futm-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Futm-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Futm-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielJDufour","download_url":"https://codeload.github.com/DanielJDufour/utm-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247653395,"owners_count":20973822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gis","mercator","projection","utm"],"created_at":"2024-11-06T04:11:45.891Z","updated_at":"2025-04-07T12:32:51.799Z","avatar_url":"https://github.com/DanielJDufour.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# utm-utils\nSuper Light-Weight Utility Functions for Working with [Universal Transverse Mercator](https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system)\n\n# Usage\n## Check if EPSG Code Refers to UTM\n```js\nconst isUTM = require('utm-utils/src/isUTM');\n\nisUTM(32619); // true\nisUTM(\"32619\"); // true\nisUTM(\"EPSG:32619\"); // true\nisUTM(\"+proj=utm +zone=17 +ellps=WGS84 +datum=WGS84 +units=m +no_defs\"); // true\n\nisUTM(\"3857\"); // false\n```\n\n## Get Hemisphere from EPSG Code\n```js\nconst getHemisphere = require('utm-utils/src/getHemisphere');\n\ngetHemisphere('32617'); // \"N\"\n```\n\n## Get Zone from EPSG Code\n```js\nconst getZone = require('utm-utils/src/getZone');\n\ngetZone('32617'); // 17\n```\n\n## Get PROJ String from EPSG Code\n```js\nconst getProjString = require('utm-utils/src/getProjString');\n\ngetProjString('32617');\n\"+proj=utm +zone=17 +ellps=WGS84 +datum=WGS84 +units=m +no_defs\"\n```\n\n## Get EPSG Code from a PROJ.4 String\n```js\nconst getCodeFromProjString = require('utm-utils/src/getCodeFromProjString');\n\ngetCodeFromProjString(\"+proj=utm +zone=17 +ellps=WGS84 +datum=WGS84 +units=m +no_defs\");\n32617\n\ngetCodeFromProjString(\"+proj=utm +zone=16 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs\")\n26916\n```\n\n## Get EPSG Code from ESRI Well-Known Text\n```js\nconst getCodeFromEsriWKT = require('utm-utils/src/getCodeFromEsriWKT.js');\n\ngetCodeFromEsriWKT(`PROJCS[\"WGS_1984_UTM_Zone_17N\",GEOGCS[\"GCS_WGS_1984\",...,UNIT[\"Meter\",1.0]]`);\n32617\n```\n\n# Support\nEmail the package author at daniel.j.dufour@gmail.com or post an issue at https://github.com/danieljdufour/utm-utils/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljdufour%2Futm-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieljdufour%2Futm-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljdufour%2Futm-utils/lists"}