Best Practices for Mosaicking Millions of Sparse COGs #197
-
Hi and I'm new to both STAC, titiler and titiler-pgstac, I'm working on investigating the viability and performance of using titiler-pgstac instead of my homegrown solution to mosaicking. The specific site I am working on is: https://earth.jpl.nasa.gov/emit-mmgis-lb/?s=hw38j (what https://earth.jpl.nasa.gov/emit/data/data-portal/coverage-and-forecasts/ iframes).
Right now, that site's mosaicking works by:
End-user performance is not an issue at all with the method. The problem, and why titiler-pgstac is being investigated, is that creating, moving and managing tiles for petabytes of data like this eats up a lot more space and is excruciatingly time consuming. I've already setup titiler-pgstac and have a collection of ~100 COGs and have registered searches on it and viewed them with the /map endpoint. I do have a few questions (and perhaps more later):
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Cool to see that JPL is looking at titiler-pgstac.
Yeah titiler-pgstac will not be as fast as serving pre-generated tiles but it will gives you more flexibility and less up front processing.
TiTiler-PgSTAC is not really an extension but re-use TiTiler base classes, meaning that if you create a custom application you can add all the endpoints you find in titiler in titiler-pgstac. We do not extent the default titiler.application because we would have duplicated (useless?) endpoint. Note: in 1.4.0, we've added the possibility to have
There are 2 scenarios:
The way titiler-pgstac works is by happening bbox for each tile request to the search (directly in pgstac) which is why we use one global Search (usually with Collection, datetime and Regional BBOX).
No
It's hard for the application to know what/how are the dataset, it's up to the Dataprovider to take care of this. You could work with COGs without overviews but would need to set the Minzoom to the zoom level corresponding the dataset resolution developmentseed/titiler#291
Yes with 1.4.0 you can use env variables titiler-pgstac/titiler/pgstac/settings.py Lines 123 to 145 in d212969 Line 27 in d212969
No the item_limit is PER TILE bbox, in case where you would need more than 100 COG to create a single tiles, I would suggest to either create bigger COGs or re-work the search query.
I feel you're trying to mosaic files a I hope that answer most of your question 👍 |
Beta Was this translation helpful? Give feedback.
Hi @tariqksoliman
Cool to see that JPL is looking at titiler-pgstac.
Yeah titiler-pgstac will not be as fast as serving pre-generated tiles but it will gives you more flexibility and less up front processing.