Extracts pixels coordinates from raster intersecting a vector.

extract_pixels_coordinates(x, y)

Arguments

x

terra::SpatRaster or character. Raster or raster path.

y

terra::SpatVector or character. Vector or vector path.

Value

data.frame. Pixel indices row, col of intersecting parts.