二维坐标
qq_18617299
无无无
展开
-
Python 多个多边形 删除大于某个给定面积的多边形
删除大于给定多边形的面积。该多边形为 "113.2392901,21.91638982;113.2737369,21.8931719;113.2514275,21.86066642;113.2097454,21.91896039;113.2392901,21.91638982"。格式为 lon1,lat1;lon2,lat2;...lonn,latn;import numpy as ...原创 2019-10-24 11:49:40 · 274 阅读 · 0 评论 -
python 二维坐标多边形 计算多边形中心点,以及距该中心点最远的距离
def center_geolocation(geolocations): ''' 输入多个经纬度坐标(格式:[[lon1, lat1],[lon2, lat2],....[lonn, latn]]),找出中心点 :param geolocations: :return:中心点坐标 [lon,lat] ''' #求平均数 同时角度弧度转化 得到中心点 x = 0 # lon ...原创 2019-06-27 20:36:20 · 11423 阅读 · 1 评论 -
python 两个时间序列坐标点的平均航速计算 两个UTC时间差计算
计算两个UTC 时间差,返回两个UTC时间秒数def caculateTimeDifference(lastTime, currentTime): ''' 计算两个UTC时间差,秒 :param lastTime: :param currentTime: :return: ''' ctime = time.localtime(curren...原创 2019-07-26 16:17:34 · 530 阅读 · 0 评论