Skip to content

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

Draft
bitner wants to merge 3 commits intocogeotiff:mainfrom
bitner:iterable_mosaic_reader
Draft

Proof of concept to allow iterable instead of sequence for mosaics.#651
bitner wants to merge 3 commits intocogeotiff:mainfrom
bitner:iterable_mosaic_reader

Conversation

@bitner
Copy link
Copy Markdown

@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.

Comment thread rio_tiler/mosaic/reader.py Outdated
Comment thread rio_tiler/mosaic/reader.py Outdated
Comment thread rio_tiler/mosaic/reader.py
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