Learn R Programming

rstac (version 0.9.1-5)

collections: Endpoint functions

Description

The collections function implements the WFS3 /collections and /collections/{collectionId} endpoints.

Each endpoint retrieves specific STAC objects:

  • /collections: Returns a list of STAC Collection published in the STAC service

  • /collections/{collectionId}: Returns a single STAC Collection object

Usage

collections(q, collection_id = NULL)

Value

A RSTACQuery object with the subclass collections for /collections/ endpoint, or a collection_id subclass for /collections/{collection_id} endpoint, containing all search field parameters to be provided to STAC API web service.

Arguments

q

a RSTACQuery object expressing a STAC query criteria.

collection_id

a character collection id to be retrieved.

See Also

get_request(), post_request(), items()

Examples

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

stac("https://brazildatacube.dpi.inpe.br/stac/") %>%
  collections(collection_id = "CB4_64_16D_STK-1") %>%
  get_request()
# }

Run the code above in your browser using DataLab