[Custom rutimes - Raster] Mosaic Builder UI
vincentsarago opened this issue · 4 comments
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:
- Per Collection Mosaic: Ideally a mosaic is
Per Collection
(because then you can assume that all items have the same assets or at least share a minimal set of assets) - add bounds for the mosaic from the Collection metadata
- add set of
defaults
mosaic options (asset selection, expression, color correction, rescaling ....) from which we can construct Tile URLs - add an option to get Min/Max zoom from all the assets (or selected asset 🤷)
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.
I've added a first version with #106 but some features still need to be added
To Do
- get more assets metadata
within the current builder we get the list of assets from the collection metadata
eoAPI/runtime/eoapi/raster/eoapi/raster/templates/mosaic-builder.html
Lines 450 to 482 in 7b429e8
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 😬 🤷 )
- add link to viewer
When we register the mosaic we get a set of links
eoAPI/runtime/eoapi/raster/eoapi/raster/templates/mosaic-builder.html
Lines 588 to 595 in 7b429e8
blocked by stac-utils/titiler-pgstac#114
@vincentsarago; isn't this implemented now?
@zacharyDez some of it yes but it still needs some work to be ✨