Learn R Programming

rstac (version 1.0.1)

queryables: Endpoint functions

Description

The queryables endpoint allows the user to discover which properties can be used in the filter extension. This endpoint can be accessed from the catalog (/queryables) or from a collection (/collections/{collection_id}/queryables).

Usage

queryables(q)

Value

A rstac_query object with the subclass queryables for /queryables

endpoint.

Arguments

q

a rstac_query object expressing a STAC query criteria.

See Also

ext_filter(), conformance(), collections()

Examples

Run this code
if (FALSE) {
# Catalog's queryables
stac("https://planetarycomputer.microsoft.com/api/stac/v1") %>%
  queryables() %>% get_request()

# Collection's queryables
stac("https://planetarycomputer.microsoft.com/api/stac/v1") %>%
  collections(collection_id = "sentinel-2-l2a") %>%
  queryables() %>%
  get_request()
}

Run the code above in your browser using DataLab