-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paging for collections? #154
Comments
@ateucher This would be fantastic! Python's |
Thank you for your suggestion. We have implemented the These changes are in the # Install the remotes package if you haven't already
install.packages("remotes")
# Install the development version of rstac from GitHub
remotes::install_github("brazil-data-cube/rstac@b-1.0.1") These functions are similar to the existing Here’s an example of how to use them: library("rstac")
# Example usage
stac("https://cmr.earthdata.nasa.gov/stac/LPCLOUD") |>
collections() |>
get_request() |>
collections_fetch() We would greatly appreciate any feedback you have. If you encounter any issues or have further suggestions, please let us know. Best regards, |
Oh that's fantastic! Apologies I didn't get to this, very happy to see it! |
Describe the requested improvement
There are
items_next()
anditems_fetch()
methods fordoc_items
objects. The STAC API supports pagination for collections in the same way as for items. It would be great to add_next()
and_fetch()
methods for collections as well. We could adddoc_collections
methods toitems_next()
anditems_fetch()
generics, or writecollections_next()
andcollections_fetch()
generics/methods fordoc_collections
objects.Associated rstac API function
In practice, the implementation would look something like this:
Additional context
The NASA STAC API has many collections endpoints using this paging functionality: https://cmr.earthdata.nasa.gov/stac/LPCLOUD.
I would be happy to draft a pull request if you think this is in scope.
The text was updated successfully, but these errors were encountered: