spatial intersect predicate for stars and sfc object
# S3 method for stars
st_intersects(x, y, sparse = TRUE, ..., as_points = NA, transpose = FALSE)
object of class stars
object that has an `st_geometry` method: of class `sf` or `sfc`, or `stars` object with an `sfc` dimension
logical; if TRUE, return the a sparse logical matrix (object of class `sgbp`), if FALSE, return a logical matrix
ignored, or passed on to `st_intersects.sf` for curvilinear grids
logical, should grid cells be considered as points (TRUE) or polygons (FALSE)? Default: FALSE and warning emitted
logical; should the transpose of the `sgbp` object be returned?
`sgbp` object if sparse = TRUE, logical matrix otherwise
curvilinear grids are always converted to polygons, so points on grid boundaries may intersect with two cells touched; for other grids each cell boundary or corner belongs only to one cell.