Skip to contents

The stac function implements /stac API endpoint (>=0.8.0), and / for versions 0.9.0 or higher. It prepares search field parameters to be provided to a STAC API web service. This endpoint should return a STAC Catalog document containing all published data catalogs.

Usage

stac(base_url, force_version = NULL)

Arguments

base_url

a character informing the base URL of a STAC web service.

force_version

a character providing the version of the STAC used. If not provided, the rstac package will make requests to try to find the version of STAC used. It is highly recommended that you inform the STAC version you are using.

Value

A rstac_query object with the subclass stac containing all request parameters to be provided to API service.

Examples

if (FALSE) { # \dontrun{
 stac("https://brazildatacube.dpi.inpe.br/stac/") %>%
   get_request()
} # }