landscape <- terra::rast(landscapemetrics::landscape)
points <- matrix(c(10, 5, 25, 15, 5, 25), ncol = 2, byrow = TRUE)
extract_lsm(landscape, y = points)
extract_lsm(landscape, y = points, type = "aggregation metric")
if (FALSE) {
# use lines
}
Run the code above in your browser using DataLab