I am not able to read the shape file. It says no such working directory.
!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
''I googled and found that I need to use SHAPE_RESTORE_SHX=YES fio info myshapefile.shp
but do not know where to use in Jupiter lab.
All the file which come with .shp file should be in same folder (.shx, .prj, .dbf)
Fix this issue, after a little more understanding of the .shp objects. The solution is to have all other relevant files that come along with .shp file in one folder!
if you working with the river dataset
Ex.
river.shp
river.prj
river.dbf
river.shx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With