当前位置:网站首页>UTM to latitude and longitude

UTM to latitude and longitude

2022-06-09 20:15:00 Qredsun

Application scenarios :
UTM Convert to latitude and longitude coordinates

Implementation code :

from pyproj import Transformer, Proj, transform

WGS84 = Proj(init='EPSG:4326')
p = Proj(init="EPSG:32651")
# utm
x, y, z = 250664.01, 3346856.17, 0
lat, lon = transform(p, WGS84, x, y)
print("x:", x, "y:", y)
print("lat:", lat, "lon:", lon)

Parameter description :

EPSG: The whole English course European Petroleum Survey Group, The Chinese name is the European Petroleum Survey Organization . Maps have been made for every part of the world , But because of the different coordinate systems , So maps are different . EPSG:

‘EPSG:4326’: The coordinate system commonly used in world maps ,GPS That's what you're using , This coordinate system is also called WGS84. For the map of China , Commonly used EPSG:4479 Coordinate system 、EPSG:4480, For different use scenarios , Choose a different coordinate system .

‘EPSG:32651’: WKID, Found in map UTM The area where the coordinates are located [https://www.netzwolf.info/ol2/utmgrid.html], For example, Hangzhou belongs to 51 Corresponding 32651

 Insert picture description here

原网站

版权声明
本文为[Qredsun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/160/202206092007138931.html