Learn R Programming

sits (version 0.13.0)

.stac_roi: Get bbox and intersects parameters

Description

Get bbox and intersects parameters

Usage

.stac_roi(roi)

Arguments

roi

the "roi" parameter defines a region of interest. It can be an sfc or sf object from sf package, a character with GeoJSON following the rules from RFC 7946, or a vector bounding box vector with named XY values ("xmin", "xmax", "ymin", "ymax").

Value

A named list with the values of the intersection and bbox parameters. If bbox is supplied, the intersection parameter gets NULL, otherwise bbox gets NULL if intersects is specified.