{"id":15887916,"url":"https://github.com/iwpnd/utmz","last_synced_at":"2025-03-17T23:31:48.769Z","repository":{"id":57615650,"uuid":"382595574","full_name":"iwpnd/utmz","owner":"iwpnd","description":"WGS84/UTM zone EPSG from latitude and longitude","archived":false,"fork":false,"pushed_at":"2022-10-01T13:29:40.000Z","size":1195,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-15T15:39:42.574Z","etag":null,"topics":["utm"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iwpnd.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-03T11:12:58.000Z","updated_at":"2022-05-21T11:49:54.000Z","dependencies_parsed_at":"2022-09-17T11:01:57.186Z","dependency_job_id":null,"html_url":"https://github.com/iwpnd/utmz","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwpnd%2Futmz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwpnd%2Futmz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwpnd%2Futmz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwpnd%2Futmz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iwpnd","download_url":"https://codeload.github.com/iwpnd/utmz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243891970,"owners_count":20364615,"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":["utm"],"created_at":"2024-10-06T06:05:41.443Z","updated_at":"2025-03-17T23:31:48.523Z","avatar_url":"https://github.com/iwpnd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# utmz\n\nMethods to get utm zone number, epsg code or proj4 string from latitude and longitude.\n\n## installation\n\n```\ngo get -u github.com/iwpnd/utmz\n```\n\n## usage\n\n### func Zone(p Point)\n\nReturn the UTM zone number for a given point.\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/iwpnd/utmz\"\n  )\n\nfunc main() {\n  z, err := utmz.Zone(52.25,13.37)\n\n  if err != nil {\n      fmt.Println(err)\n      return\n    }\n\n  fmt.Printf(z)\n}\n```\n\nResults in\n\n```\n33\n```\n\n### func Epsg(p Point)\n\nReturn a UTM zones EPSG code at a given point.\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/iwpnd/utmz\"\n  )\n\nfunc main() {\n  epsg, err := utmz.Epsg(52.25,13.37)\n\n  if err != nil {\n      fmt.Println(err)\n      return\n    }\n\n  fmt.Printf(epsg)\n}\n```\n\nResults in\n\n```\n32633\n```\n\n### func Proj4(p Point)\n\nReturn an UTM zones proj4 string from a given point.\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/iwpnd/utmz\"\n  )\n\nfunc main() {\n  proj4, err := utmz.Proj4(52.25,13.37)\n\n  if err != nil {\n      fmt.Println(err)\n      return\n    }\n\n  fmt.Printf(proj4)\n}\n```\n\nResults in\n\n```\n+proj=utm +zone=33 +datum=WGS84 +units=m +no_def +ellps=WGS84 +towgs84=0,0,0\n```\n\n## License\n\nMIT\n\n## Maintainer\n\nBenjamin Ramser - [@iwpnd](https://github.com/iwpnd)\n\nProject Link: [https://github.com/iwpnd/utmz](https://github.com/iwpnd/utmz)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiwpnd%2Futmz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiwpnd%2Futmz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiwpnd%2Futmz/lists"}