I'm new to Python. I'm trying to sample raster values to points based on the geometries of a shapefile using the below code but I'm receiving the below error .
import fiona
import rasterio as rio
import pandas as pd
multi_values_points = pd.Series()
with fiona.open(inputShape) as shp:
for feature in shp:
Name = feature['properties']['Name']
coords = feature['geometry']['coordinates']
with rio.open(inputRaster) as stack_src:
value = [v for v in stack_src.sample([coords])]
multi_values_points.loc[Name] = value
**ValueError: not enough values to unpack (expected 2, got 1)**