美文网首页
geopandas 安装

geopandas 安装

作者: hehehehe | 来源:发表于2020-09-11 13:24 被阅读0次

https://www.lfd.uci.edu/~gohlke/pythonlibs/

1、pip install .\GDAL-3.1.2-cp37-cp37m-win_amd64.whl
2、pip install .\Fiona-1.8.16-cp37-cp37m-win_amd64.whl
3、pip install .\geopandas-0.8.1-py3-none-any.whl

df = pd.DataFrame(np.random.randn(50, 3),columns=['X', 'Y', 'Z'])
geom = [shapely.geometry.Point(xy) for xy in zip(df.X, df.Y)]
gdf = geopandas.GeoDataFrame(df, geometry=geom)
print type(gdf)

相关文章

网友评论

      本文标题:geopandas 安装

      本文链接:https://www.haomeiwen.com/subject/vxovektx.html