stac-utils / stac-utils/stac-fastapi

How to declare STAC Catalog extensions?

Open
#914 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
324
Forks
126
Avg merge
1d 22h
Merged PRs (30d)
10

Description

As far as I understand, extensions implemented in the STAC Catalog (i.e. STAC extensions) should appear in the stac_extensions field of the STAC API landing page, while STAC API extensions should be listed in the field conformsTo of the same page.

If that's the case, I can't get around how to declare implemented STAC Catalog extension using stac-fastapi.

From a code inspection it looks like this should be possible, in principle, via the extension_schemas argument of the LandingPageMixin._landing_page method here: https://github.com/stac-utils/stac-fastapi/blob/7b209773a9f96b24d570e7c1132711e5e4c84df3/stac_fastapi/types/stac_fastapi/types/core.py#L48

but it also looks like wherever the method is used it is always harcoded to [], i.e. here:
https://github.com/stac-utils/stac-fastapi/blob/7b209773a9f96b24d570e7c1132711e5e4c84df3/stac_fastapi/types/stac_fastapi/types/core.py#L155

and here:
https://github.com/stac-utils/stac-fastapi/blob/7b209773a9f96b24d570e7c1132711e5e4c84df3/stac_fastapi/types/stac_fastapi/types/core.py#L365

What am I missing?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in stac_fastapi/types/stac_fastapi/types/core.py by reading LandingPageMixin._landing_page and its uses near the referenced lines. Trace how extension_schemas and conformsTo are populated, then verify the landing page can represent implemented STAC Catalog extensions separately from STAC API extensions.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, python
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.