
Index of the first polygon that each point intersects
Source:R/internal_functions.R
dot-first_hit.Rdsf::st_intersects() returns a list in which points can match zero, one or
several polygons (e.g., a point on a shared boundary). Coercing that list
with as.integer() errors for any point that does not match exactly one.