Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STAC] Inject titiler links in collections/Items/search #28

Open
vincentsarago opened this issue Feb 16, 2025 · 0 comments
Open

[STAC] Inject titiler links in collections/Items/search #28

vincentsarago opened this issue Feb 16, 2025 · 0 comments

Comments

@vincentsarago
Copy link
Member

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

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

No branches or pull requests

1 participant