developmentseed / developmentseed/eoapi-devseed

[STAC] Inject `titiler` links in collections/Items/search

Aperta
#28 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
HTML
Stelle
15
Fork
4
Merge medio
6g 11h
PR unite (30g)
5

Descrizione

After #26 we will have the full `Client` customized, meaning that it will be `easy` to change the `Links` Models (https://github.com/stac-utils/stac-fastapi-pgstac/blob/main/stac_fastapi/pgstac/models/links.py)

e.g

```python
from stac_fastapi.pgstac.models import links

@attr.s
class CollectionLinks(links.CollectionLinks):

def link_titiler(self) -> Dict:
"""Create the `titiler` link."""
return {
"rel": Relations.data.value,
"href": f"{settings.titiler_endpoint}/collections/{self.collection_id}/tiles",
}

```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.