将UTM坐标转换为度坐标

huangapple go评论63阅读模式
英文:

How to convert UTM to degrees coordinates

问题

我对Python相当新,需要帮助将这些坐标从UTM转换为十进制。

如果有人可以帮助,我将永远感激不尽...
问候

区域
300471 6282670 19H
267390 6353815 19H
712859 5826350 18H

我一直在尝试使用pyproj库,但我不知道我是否使用了正确的语法,或者是否有另一个用于解决我正在尝试解决的UTM的代码。

英文:

I'm pretty new to python and I need help on turning this coordinates from UTM to decimals.

If someone could help I will be forever in debt..
Regards

East North Zone
300471 6282670 19H
267390 6353815 19H
712859 5826350 18H

I've been trying to use the pyproj library but I don't know if I'm using the correct sintax or if there is another code for the UTM that I'm trying to solve.

答案1

得分: 2

"utm"包具有一个内置函数,可直接应用于您的问题。例如,对于第一个参数集,您可以应用以下代码:

import utm
utm.to_latlon(300471, 6282670, 19, 'H')

它将产生以下输出:

>>> (-33.577026625458686, -71.1498294516708)
英文:

The utm package features an in-built function directly applying to your problem. For instance, for the first parameter set you can apply

import utm
utm.to_latlon(300471, 6282670, 19, 'H')

which yields the output

>>> (-33.577026625458686, -71.1498294516708)

huangapple
  • 本文由 发表于 2023年4月20日 05:03:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/76058789.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定