developmentseed / developmentseed/eoapi-devseed

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

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
15
Forks
4
Avg merge
6d 11h
Merged PRs (30d)
5

Description

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",
}

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.