Fetch all collections from an rstac::collections() query
Source: R/stac-collections_fetch.R
collections_fetch.RdBy default, NASA STAC catalogue collections queries only return 10 collections at a time. This function will page through the collections and return them all.
Arguments
- collections
an object of class
doc_collectionsas returned by callingrstac::get_request()on anrstac::collections()query- ...
Optional arguments passed on to
httr::GET()
Value
A doc_collections object with all of the collections from the catalogue
specified in the rstac::collections() query.
Examples
if (FALSE) { # interactive()
rstac::stac("https://cmr.earthdata.nasa.gov/stac/LPCLOUD") |>
rstac::collections() |>
rstac::get_request() |>
collections_fetch()
}