-
Dear Admin, I am working with tutorial 10 and I have the error 'The input shapefile could not be found.' countries_shp = 'countries.shp' The input shapefile could not be found. countries_shp = 'countries.shp' The input shapefile could not be found.AttributeError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/geemap/geemap.py in add_ee_layer(self, ee_object, vis_params, name, shown, opacity) AttributeError: The image argument in 'addLayer' function must be an instance of one of ee.Image, ee.Geometry, ee.Feature or ee.FeatureCollection. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
The error message already tells you what's wrong. Make sure you have the sample data on your computer. Download the repo and run the notebook within the unzipped directory |
Beta Was this translation helpful? Give feedback.
-
Error uploading a .shp file using a linkGood afternoon teacher, how are you? Excuse me, I am working on a code with geemap, to load a .shp file in two ways and neither has worked for me, below I will show you the code
In the first case I start reading the file from a specific path on my computer and then I convert it to an .ee file, it reads it but in the end it returns the following message: 'utf-8' codec can't decode byte 0x82 in position 27: invalid start byte:
Following that I read the file from the file download link and read it with the gpd.read_file() function and plot it to check if it works and reads it correctly
Then I convert the geopandas.geodataframe.GeoDataFrame object to an object of type ee.featurecollection.FeatureCollection but it generates the following error:
If you could guide me to resolve the error please teacher. |
Beta Was this translation helpful? Give feedback.
The error message already tells you what's wrong. Make sure you have the sample data on your computer. Download the repo and run the notebook within the unzipped directory
https://github.com/giswqs/geemap/archive/refs/heads/master.zip