brazil-data-cube / rstac

R Client Library for SpatioTemporal Asset Catalog
https://brazil-data-cube.github.io/rstac
Other
70 stars 15 forks source link

create STAC catalog in R #131

Open wiesehahn opened 1 year ago

wiesehahn commented 1 year ago

Hi, I find the concept of STAC catalogs quite promising although I have to admit that I still haven't understood many parts. So forgive me if my question or idea is silly.

Lets say I (the institute) have a ton of imagery and other geospatial data (sorted in several folders on network drive until now), and I want to make it searchable for others (internally first but with the aim to provide it online at some point). To my understanding it would be benefitial to create a STAC catalog (with collections,...).

I was wondering if there are helpers or resources on the creation of STAC catalogs from within R?

(As far as I understand rstac is meant to work with existing catalogs)

OldLipe commented 1 year ago

Hi @wiesehahn,

Lets say I (the institute) have a ton of imagery and other geospatial data (sorted in several folders on network drive until now), and I want to make it searchable for others (internally first but with the aim to provide it online at some point). To my understanding it would be benefitial to create a STAC catalog (with collections,...).

Indeed, using the STAC specification is beneficial to both the data provider and the users. The specification is well documented and has an active community.

Currently rstac does not support static STAC catalogs, but in the next package update we will include this functionality.

xref #21

wiesehahn commented 1 year ago

Are there any news regarding this topic?

OldLipe commented 1 year ago

Hi @wiesehahn,

We plan to add support for static catalogs in the next version of rstac (0.9.3 or 1.0.0).

SteveViss commented 9 months ago

Hi @OldLipe, has anyone made any progress on the feature requested by @wiesehahn?

I was wondering if there are helpers or resources on the creation of STAC catalogs from within R?

The overall idea is to generate catalogs, collections, and items that adhere to the existing STAC specifications (refer to https://schemas.stacspec.org/). Subsequently, these objects could either contribute by being POST to an existing stac-catalog or to a local one. Python is predominantly used in most utilities and tutorials for creating a STAC catalog. I think (maybe I'm wrong), it would be beneficial to include utilities and a vignette in this package that specifically addresses this aspect. If no one is currently working on it and you're open to the idea, I'd be interested in contributing by opening a pull request (PR)! Thanks!

OldLipe commented 9 months ago

Hi @SteveViss, thanks for asking!

One of rstac's developer, @rolfsimoes, implemented support for static catalogs. We'll finish testing this week and upload version 1.0.0 of the rstac package.

wiesehahn commented 4 months ago

Hey, I am not sure, but I guess we are talking about different things here.

implemented support for static catalogs

you mean to query existing static catalogs?

What I meant in my initial question (and @SteveViss is also referring to) are helper functions to actually create json files which are valid STAC catalogs/collections/items. Basically exactly what pystac does (see e.g. https://stacspec.org/en/tutorials/2-create-stac-catalog-python/). So far I am not aware of any functions implemented in R to do this. I am not sure how all available STACS are generated but I guess the majority via pystac.

Are there any plans to implement this or is this out of scope for rstac?