尝试打开shapefile

时间:2020-10-17 13:12:46

标签: python pip gis shapefile geopandas

我有许多不同的shapefile类型-.cpg,.dbf,.prj,.sbn,.sbx,.shp,.rtree和.shx

我已经尝试过淘汰一些打开shapefile的免费软件,例如TatukGIS Viewer和DBF Reader Plus,但是运气不佳。

在阅读本文时,我试图用Python打开它们: http://www.acgeospatial.co.uk/geopandas-shapefiles-jupyter/

但是,我在安装Geopandas时遇到了麻烦。我在尝试运行时收到此错误: enter image description here

我研究了这些错误,并尝试使用升级设置工具 enter image description here

完全迷失了,不知道当我查找该错误意味着什么

2 个答案:

答案 0 :(得分:0)

关于您的原始问题,请尝试使用QGIS软件。在许多功能中,它肯定可以打开Shapefile以及许多其他地理空间格式。

关于您发布的错误,它与用户权限有关,并且已经得到回答,例如在Access is denied when trying to pip install a package on Windows

答案 1 :(得分:0)

众所周知,geopandas很难安装,尤其是在Windows上。要安装geopandas,请先安装Conda,然后以管理员身份打开Anaconda Prompt,然后键入:

conda install -c conda-forge geopandas 

在这里找到答案: https://www.reddit.com/r/gis/comments/as5rze/what_does_this_geopandas_installation_error_mean/

然后您可以使用geopandas打开shapefile