我一直在尝试将纬度和经度坐标与来自 wardriven 数据集的 wifi RSSI 值结合起来,以获得 3D 网格 - like this 。因此:X,Y,Z = Lat, Long, RSSI
到目前为止,我已将 X、Y、Z 导出到 CSV 文件,并尝试使用 this 脚本将其导入 blender ,但没有得到任何有用的东西。大多只是直线。
我还尝试使用 pyproj 将纬度和经度转换为 ecef,以使 RSSI 和 GPS 数据更加相似,但无济于事。
我的 CSV 如下所示:
[(84.93475847252022, -89.91906774534704, -72.0)
(84.93444026890381, -89.9190789918068, -78.0)
(84.93447718347761, -89.91908064130264, -79.0)
(84.93446626538486, -89.9190807252239, -79.0)
(84.93464567138756, -89.91907317821823, -75.0)
(84.93475424916566, -89.91908073758599, -79.0)
(84.93485534408349, -89.91909018237004, -84.0)
(84.93493336837452, -89.9190845795334, -81.0)]
最佳答案
import folium
import pandas as pd
from folium import plugins
SF_COORDINATES = (84.9347, -89.9190)
Import Packages and Find your coordinates online as shown above
MAX_RECORDS = 1000
map = folium.Map(location=SF_COORDINATES, zoom_start=20)
for index,row in data.iterrows():
folium.CircleMarker([row['Lat'], row['Lon']],
radius=5,
popup=row['Rssi'],
fill_color="#3db7e4",
clustered_marker = True).add_to(map)
arra = data[['lat', 'lon']].as_matrix()
map.add_children(plugins.HeatMap(arra, radius=25))
map
The above code shall work with folium and pandas packages
关于python - 纬度、经度和 RSSI 转 3D 图形,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54660130/