Skip to content

Run with custom catalog.json and collections.json #353

Answered by gadomski
iliion asked this question in Q&A
Discussion options

You must be logged in to vote

By catalog.json, I assume you mean the landing page? If so, you can customize title, description, etc when you create your API (e.g. here's how it's done on the Planetary Computer: https://github.com/microsoft/planetary-computer-apis/blob/26a67e1266c7fc1ba190bdc5406cbfa2f6855edc/pcstac/pcstac/main.py#L57-L74). If you need additional customization, you can override the landing_page method on your client:

async def landing_page(self, **kwargs) -> stac_types.LandingPage:

As for adding your own Collections, you can use the API itself to load collections and itmes; check out this script in the repo…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by iliion
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants