Questions about 'PgSTACReader' and 'SimpleSTACReader' #212
-
|
As far as I have found, 'Searches' and 'Collections' endpoints are built by What are the differences between these two readers? Our team is trying to make some customizations, like support of HTTP and S3 links in parallel, and handling 'alterate_asset' STAC extensions. Do we need to customize both readers? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You'll need to customize each ones but some I can't remind why it's not done the same in titiler-pgstac but we could certainly bring this into titiler-pgstac/titiler/pgstac/reader.py Lines 151 to 155 in d0d2f86 |
Beta Was this translation helpful? Give feedback.
rio_tiler.io.stac.STACReaderexpects 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/itemsexpects a singleinputas a pystac Itemtitiler.pgstac.reader.SimpleSTACReaderexpects aDictas input, from pgstac response directlyYou'll need to customize each ones but some
customizationaround alternate href is already available https://github.com/cogeotiff/rio-tiler/blob/main/rio_tiler/io/stac.py#L348-L350I can't remind why it's not done the same in titiler-pgstac but we could certainly bring this into
titiler-pgstac/titiler/pgstac/reader.py
Lines 151 to 155 in d0d2f86