代码:
#WebMercator-wgs84
def webMercator2wgs84(x,y):
lon = x/20037508.34*180
lat = y/20037508.34*180
lat= 180/math.pi*(2*math.atan(math.exp(lat*math.pi/180))-math.pi/2)
return lon,lat
“geometry”对应的为墨卡托坐标
“lonlat_geo”对应的为转化后的经纬度坐标
标签:793,墨卡托,180,坐标,lat,WGS84,pi,math From: https://www.cnblogs.com/alex-bn-lee/p/16989438.html