Description Usage Arguments Value Note Author(s)
View source: R/fct_tiles_intersects.R
Function which returns the tile IDs of the Sentinel-2 tiles which overlap a provided extent.
1 | tiles_intersects(extent, all = FALSE, out_format = "id", .s2tiles = NULL)
|
extent |
'sf' object with the spatial extent. |
all |
logical: if TRUE, all the tiles overlapping the extent are provided; if FALSE (default), unnecessary tiles are skipped. Unnecessary tiles are tiles which overlaps the extent for an area already covered by another tile. In case the extent is all included in an overlapping area, only one of the two candidate tiles is returned (the first in alphabetical order). |
out_format |
character: if "sf", the spatial object of the overlapping tiles is returned; if "id" (default), a character vector with the tile IDs. |
.s2tiles |
output of [s2_tiles()] function (it is possible to pass it in order to speed up the execution; otherwise leave to NULL and it will be generated within the function). |
the tiles intersecting the extent (see argument 'out_format').
License: GPL 3.0
Luigi Ranghetti, phD (2019) luigi@ranghetti.info
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.