【447】两经纬度点之间的距离计算

前面经度,后面纬度

ArcGIS Python 实现

2 * 6372 * math.asin(math.sqrt(math.sin((math.radians( !CENTROID_Y! )-math.radians( !Avg_co_lat! ))/2 )**2 + math.cos(math.radians( !CENTROID_Y! ) ) * math.cos(math.radians( !Avg_co_lat! ) ) * math.sin((math.radians( !CENTROID_X! )-math.radians( !Avg_co_lon! ))/2 )**2 ) )

猜你喜欢

转载自www.cnblogs.com/alex-bn-lee/p/11812325.html
今日推荐