DHI-GRAS / sample-satellite-imagery

Collection of sample satellite images and metadata
MIT License
4 stars 1 forks source link

Define STAC-compliant metadata schema #9

Open j08lue opened 4 years ago

j08lue commented 4 years ago
  1. Define the schema
  2. Apply it to each submission as a CI hook 3. Make it searchable with GraphQL
dionhaefner commented 4 years ago

Could you elaborate on the last part? How would you make the metadata searchable?

j08lue commented 4 years ago

I just thought that if we stored the STAC data basically as a collection of dictionaries with consistent keys and used a GraphQL schema instead of marshmallow for defining the structure, it should be very easy to support queries like

query = gql('''
{
  entry(satellite: "Sentinel-2"){
    path
    footprint
  }
}
''')

Not so much because we need it, but just for playing with GraphQL in combination with STAC... But perhaps that is totally overkill for this collection of a few files - also in terms of dependencies this would add to this repo.

dionhaefner commented 4 years ago

Hey @vincentsarago, I think it was you who suggested the STAC metadata. Do you have an example of how this could look in practice? What kind of fields would you like to see defined?