!pip install sentinelsat
!pip install geopandas
!pip install folium
from sentinelsat import SentinelAPI
user = '****'
password = '****'
api = SentinelAPI(user, password, 'https://scihub.copernicus.eu/dhus')
import geopandas as gpd
import folium
nReserve = gpd.read_file(r"G:\New folder (2)\cardinialres.shp")
m = folium.Map([-37.971389, 145.418889], zoom_start=12)
folium.GeoJson(nReserve).add_to(m)
m
``我在Google上搜索后发现我需要使用
SHAPE_RESTORE_SHX=YES fio info myshapefile.shp
,但不知道在木星实验室中的何处使用。
最佳答案
.shp文件随附的所有文件应位于同一文件夹(.shx,.prj,.dbf)
关于python-3.x - 将SHAPE_RESTORE_SHX配置选项设置为YES即可恢复或创建它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61436956/