I have the below GeoPandas dataframe that has:
- two columns: geometry and raster_val
- 13 rows
The first row is shown below.
geometry raster_val 0 POLYGON ((746124.59744 3382358.69579, 746124.5... 5.0
I want to use the Geopandas geometry to get the raster pixels inside each polygon and store the pixel values in separate numpy arrays.