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

Make a new STAC example with less config #382

Open
jisantuc opened this issue Jun 16, 2021 · 4 comments
Open

Make a new STAC example with less config #382

jisantuc opened this issue Jun 16, 2021 · 4 comments

Comments

@jisantuc
Copy link
Contributor

Currently the configuring the stac-example requires starting the application with a new config any time you want to visualize another collection. It would be nice if instead we could consume the collections list endpoint and figure out what to visualize from there. I think that could cut down a lot of the config size, and then you could drive "where do collections live" with a STAC_API_HOST env var and be close to done -- at least if just want the easiest thing -- instead of having to repeat configuration blocks for every collection you want to visualize.

@pomadchin
Copy link
Member

pomadchin commented Jun 16, 2021

Sounds like a nice configuration improvement. In some cases there can be a need just to visualize all collections that are available. In this case it would be enough to provide the STAC_API_HOST and the ASSET_NAME.

This would require to add an extra configuration type.

@pomadchin
Copy link
Member

Talked to @jisantuc, assets_id can also be an extra endpoint param.

@pomadchin
Copy link
Member

pomadchin commented Jun 16, 2021

Just for more context, really the OGC LayerId is a tuple (collection.id, asset.id).
To workaround the limitation of queries bounded by OGC standards and complexity of adding user defined params we can make an endpoint and provide a "fixed" collectionId or assetId:

  1. /collectionId/wms?request=getCapabilities
  2. /assetId/wms?request=getCapabilities
  • In the first case "OGC Layers" would be asets within a single collection. So each assets would be able to represent a displayable layer.
  • In the second case "OGC Layers" would be collections that have a specified asset.

I got a sense that 1. is preferable here.

@jisantuc
Copy link
Contributor Author

I got a sense that 1. is preferable here.

I preferred it at first because it matched how I was thinking about things, but meaningful asset names would make 2 pretty nice too. Like if I have a NIR800 asset name and I'm consistent with how I name things in different places, then it would be cool I guess to see all the collections that have any items with that asset available.

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

No branches or pull requests

2 participants