Learn R Programming

rstac (version 0.9.1-5)

stac: Endpoint functions

Description

The stac function implements /stac API endpoint (>=0.8.0), and / for versions 0.9.0 or higher. It prepares search fields 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)

Value

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

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.

See Also

stac_search(), collections(), items(), get_request(), post_request()

Examples

Run this code
# \donttest{
stac("https://brazildatacube.dpi.inpe.br/stac/") %>%
  get_request()
# }

Run the code above in your browser using DataLab