Skip to content

Questions about 'PgSTACReader' and 'SimpleSTACReader' #212

Discussion options

You must be logged in to vote
  • rio_tiler.io.stac.STACReader expects either a Path or a Pystac Item (internally it will fetch the stac Item if only a path is passed)

  • titiler.pgstac.reader.PgSTACReader, used in /items expects a single input as a pystac Item

  • titiler.pgstac.reader.SimpleSTACReader expects a Dict as input, from pgstac response directly

You'll need to customize each ones but some customization around alternate href is already available https://github.com/cogeotiff/rio-tiler/blob/main/rio_tiler/io/stac.py#L348-L350

I can't remind why it's not done the same in titiler-pgstac but we could certainly bring this into

asset_info =

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by louisstuart96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #209 on January 13, 2025 09:58.