You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def PP(p,line):
for i in range(len(line)):
geom = ogr.CreateGeometryFromWkt(str(line['geometry'][i]))
t = geom.Contains(ogr.CreateGeometryFromWkt('POINT('+str(p[5])+' '+str(p[6])+')'))
if t:
return (i,p[0],p[16],1)
break
else:
return ('other','1',1,1)
data1 = data.rdd.map(lambda a:PP(a,road1))
r = data1.take(500000)
The text was updated successfully, but these errors were encountered:
虾神您好,我用12的方法做GPS路径匹配,数据量有1.7亿,500个点用时1s,5000个点用时10s,50000点用时100s,请问有更为快速的方法吗?
保存GPS的hdfs中分了200个block,运行程序只读取一个block里的数据,是不是这个原因导致程序运行过慢?
The text was updated successfully, but these errors were encountered: