要将csv数据从Latlong (学位)更改为UTM坐标有问题。这是示例数据:
Date Time Latitude Longitude
23/08/2018 9:00:00 -5.1661 119.4543
23/08/2018 9:00:01 -5.166 119.4544
23/08/2018 9:00:02 -5.1659 119.4544
23/08/2018 9:00:07 -5.1657 119.4546
23/08/2018 9:00:42 -5.162 119.4567
23/08/2018 9:00:43 -5.1614 119.4567
23/08/2018 9:00:44 -5.16 119.4548我试着用这种方法改变坐标
df = pd.read_csv("data.csv")
s = gpd.GeoSeries([Point(x,y) for x, y in zip(df['Longitude'], df['Latitude'])])
geo_df = gpd.GeoDataFrame(df[['Date','Time']], geometry=s)
geo_df.crs = {'init': 'epsg:4326'}
geo_df = geo_df.to_crs({'init': 'epsg:32750'})
geo_df但我有TypeError: must be real number, not str
有什么办法解决这个问题吗?
发布于 2018-12-09 09:33:41
https://stackoverflow.com/questions/53690750
复制相似问题