I'm trying to download Sentinel-2 data of my area of interests on Google Earth Engine API for Python.
I'm trying to access my shape file (contains 2 different polygons) on the API. I added the shape file using geopandas as gpd.
shapefile = gpd.read_file("polygon.shp") fc = ee.FeatureCollection(ee.Geometry(shapefile))
Traceback (most recent call last): File "D:/Hacettepe/GFZ/PyScript/googleEarthEngine_S2.py", line 32, in <module> fc = ee.FeatureCollection(ee.Geometry(shapefile)) File "C:\Users\polyt\AppData\Local\Programs\Python\Python37\lib\site-packages\ee\computedobject.py", line 32, in __call__ return type.__call__(cls, *args, **kwargs) File "C:\Users\polyt\AppData\Local\Programs\Python\Python37\lib\site-packages\ee\geometry.py", line 83, in __init__ raise ee_exception.EEException('Invalid GeoJSON geometry.') ee.ee_exception.EEException: Invalid GeoJSON geometry.
I tried to find different ways to access polygons (not creating a new one), but I couldn't find any source. So I would be happy if you could help me.
[Also I'm getting "HTTP Error 403: Forbidden"]