Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Assuming title is always available in collections #71

Open
fredliporace opened this issue Jul 26, 2019 · 0 comments
Open

Assuming title is always available in collections #71

fredliporace opened this issue Jul 26, 2019 · 0 comments

Comments

@fredliporace
Copy link

@kbgg congrats on this awesome project!

I'm tinkering with it to submit a PR to include the CBERS stac api server, and noticed that the browser assumes that title is always available for collections, more specifically here:

title = collection.title.replace("\n", " ")

This breaks if no title is available. Since this field is not currently required it would be better to use id if title is not available. This is what I did in my fork,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant