Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to export image_collections as STAC collections? #76

Open
cboettig opened this issue Dec 4, 2022 · 1 comment
Open

Add ability to export image_collections as STAC collections? #76

cboettig opened this issue Dec 4, 2022 · 1 comment

Comments

@cboettig
Copy link

cboettig commented Dec 4, 2022

Would you consider adding an export utility that could generate STAC collection metadata (JSON) that would go with a cube? Perhaps such functionality belongs more to rstac, or some combination of the two, but as gdalcube object already contains the metadata it seems like a natural feature (maybe complementing the existing support for writing assets, eg, via gdalcubes::write_tif()).

I think the argument you make in https://doi.org/10.3390/data4030092 for on-demand cubes is pretty compelling. All the same, I could see it being nice to have a way to easily export/share/reuse cubes created and processed with GDAL cubes. I'm still learning here, but It seems like the natural/cloud-native approach would be to put both the COG assets and a STAC JSON catalog on an S3 bucket (or really any other web platform for hosting data).

@appelmar
Copy link
Owner

Thanks for the idea (and sorry for the late reply), I agree this would be very useful especially as an addition to the output from write_tif(). I still need some time to learn a bit about which STAC extensions might be useful here (e.g., https://github.com/stac-extensions/datacube), but other than that, this should not be too difficult to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants