Skip to content

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

Description

@vincentsarago

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions