developmentseed / eoAPI

[Active Development] Earth Observation API (Metadata, Raster and Vector services)
https://eoapi.dev
MIT License
197 stars 21 forks source link

[Custom rutimes - Raster] Mosaic Builder UI #59

Closed vincentsarago closed 3 months ago

vincentsarago commented 1 year ago

Let's create a simple Demo UI to create Mosaic

in titiler-pgstac (eoapi.raster), a Mosaic is a stac-api (pgSTAC) Search request, which we register through the /mosaic/register endpoint (https://stac-utils.github.io/titiler-pgstac/advanced/metadata/)

Requirements:

Note: To be able to fully create a perfect mosaic, the user might need to get statistics/info from items so it will be nice to have a place for this.

vincentsarago commented 1 year ago

I've added a first version with https://github.com/developmentseed/eoAPI/pull/106 but some features still need to be added

vincentsarago commented 1 year ago

To Do

  1. get more assets metadata

within the current builder we get the list of assets from the collection metadata https://github.com/developmentseed/eoAPI/blob/7b429e8106438faf5f4cb24cd09bb23b7edb6b80/runtime/eoapi/raster/eoapi/raster/templates/mosaic-builder.html#L450-L482

This is nice but not enough, we should add a button to retrieve information about Item (using STACReader.info() for the first item in a collection, assuming all items are similar 😬 🤷 )

  1. add link to viewer

When we register the mosaic we get a set of links https://github.com/developmentseed/eoAPI/blob/7b429e8106438faf5f4cb24cd09bb23b7edb6b80/runtime/eoapi/raster/eoapi/raster/templates/mosaic-builder.html#L588-L595

blocked by https://github.com/stac-utils/titiler-pgstac/issues/114

zacharyDez commented 10 months ago

@vincentsarago; isn't this implemented now?

vincentsarago commented 10 months ago

@zacharyDez some of it yes but it still needs some work to be ✨