I'm trying to get a numpy array from a specific line region with no success. I have been trying to use ee.Image.sampleRectangle() but it is sampling only Polygons, and when I use it on Line region, I am getting some unwanted points. Is there any other function that sample the images?
polygon = ee.Geometry.LineString(multicoords[0],ee.Projection('EPSG:32636'))
planarPolygon = ee.Geometry(polygon);
band_arrs = image.sampleRectangle(region=polygon)
band_arrs.getInfo()
band_arr_B8A = band_arrs.get('B8A')
np.array(band_arr_B8A.getInfo())