Open BnJam opened 1 year ago
@BnJam , could you expand on the use case? I'd love to hear more!
I originally tried to add TiTiler support to stac-layer (used by stac-browser for visualization) but found most of the basic use cases covered by treating it as a generic tiling endpoint (vs. leveraging the specifics of TiTiler). I'm sure there are advanced use cases that would more fully leverage the advanced capabilities of TiTiler, I just need to understand what they are better and would need help creating test cases for them.
fwiw, I would recommend checking out the files listed here: https://github.com/stac-utils/stac-layer/pull/55/files. It leverages dynamic-client, which creates a simple JavaScript client for TiTiler based on the OpenAPI Definition. I think getting statistics would be as easy as
const client = new DynamicClient({ url });
await client.init();
client.stac.statistics.get({ url, expression: "Asset1_b1/Asset2_b1" })
Open to your thoughts!
I hadn't heard of stac-layer
yet! I will have to dig into that more 🙂
As you may have seen, I also started a Discussion on DevelopmentSeed's TiTilers (well, a Bug at first, oops):
This discussion opens an avenue for collaboration on a STAC Browser dedicated endpoint that could be optimised as a preprocessing engine when retrieving data.
could you expand on the use case? I'd love to hear more!
Certainly!
The Use Case I was thinking about involves a more interactive tiling visualization pane that is user friendly to reduce the complexity needed to non-developer users to navigate and use the STAC Browser. This would be most apparent in the Search pane where Users could use the tiling service to inspect the data, however having a sidebar option to select indice operations to visualize on the tiled view (via drop down? Multi-box selection? with map layers) could help data investigation. An addition to that is using the endpoint /stac/point/{lon},{lat}
to create a temporal value graph (eg with NDVI to see vegetation health). This would be useful for selecting appropriate spatial and temporal AOI's.
The STAC Browser could make use of a dedicated TiTiler endpoint for services that leverage visualization data. TiTiler would enable functionality into the render so a client, customer, or colleague can visually explore the Catalog/Collection and manipulate option values to drill into the data better with accessible metadata on indice or asset statistics.
Adding TiTiler integration, for a search/query operation, could be able to better filter results based on band operations, statistics, and thresholds.
These are some of my ideas on how TiTiler could be integrated. Is this realistic for STAC Browsers scope?
I am also eager to involve a wider audience - perhaps a more followed person can Tweet about this for feedback from the geospatial community?
This is all very interesting and I'd love to see this in STAC Browser.
There are two concerns though:
Issue item from conversation with @m-mohr (Tweet 🧵)
Integrating TiTiler
/stac
endpoints into the STAC Browser could offer accessible analytical exploration.One example would be using the
/statistics?expression=...
to retrieve band math to be visualized in the tiler. Other operations can be streamed through TiTiler endpoints as a preprocessing engine.