tiles_intersects: Select the tiles intersecting the extent

Description Usage Arguments Value Note Author(s)

View source: R/fct_tiles_intersects.R

Description

Function which returns the tile IDs of the Sentinel-2 tiles which overlap a provided extent.

Usage

1
tiles_intersects(extent, all = FALSE, out_format = "id", .s2tiles = NULL)

Arguments

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).

Value

the tiles intersecting the extent (see argument 'out_format').

Note

License: GPL 3.0

Author(s)

Luigi Ranghetti, phD (2019) luigi@ranghetti.info


pobsteta/shinyCNES documentation built on April 28, 2021, 9:43 a.m.