Skip to content
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

Proof of concept to allow iterable instead of sequence for mosaics. #651

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bitner
Copy link

@bitner bitner commented Nov 2, 2023

Pystac-Client returns an iterable that uses the paging mechanism on search results.

By allowing an iterable rather than a sequence, we can implement titiler-pgstac like behavior on any stac api.

Basically, the max_items would be comparable to the _scan_limit parameter used in titiler-pgstac.

In this example, it will keep scanning through the iterable until it either hits the max_items or until pixel_selection is done.

The iterable_example.ipynb notebook demos this for a single tile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants