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

New command: stac archive <href> <outfile> #342

Open
gadomski opened this issue Aug 4, 2022 · 3 comments
Open

New command: stac archive <href> <outfile> #342

gadomski opened this issue Aug 4, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@gadomski
Copy link
Member

gadomski commented Aug 4, 2022

As brought up in Gitter by @schwehr, it would be a neat feature to crawl an entire catalog/collection, make all hrefs relative, and save it in an archive format (e.g. zip, tarball, etc).

@gadomski gadomski added the enhancement New feature or request label Aug 4, 2022
@schwehr
Copy link

schwehr commented Aug 4, 2022

Discussion is here: https://gitter.im/SpatioTemporal-Asset-Catalog/Lobby?at=62eaf7427ccf6b6d45c17803

Quoting myself:

I was playing with pystac_client earlier this week with Earth Engine's catalog. It's hard to not notice how long it takes load the entire catalog (more than 90 seconds), which is only 28MB total. Aside from having a STAC API setup (which I would like to do), I was wondering what people would think of having a zip of the catalog next to the full tree (and/or .tar.gz, .tar.bz2, .tar.xz cause they are even smaller... 640K for the xz)? This would not be replacing the regular STAC tree. Pulling a single file that small from GCS is pretty fast.

Thanks Pete for the feedback! async would definitely help too. I think the one thing I need to do is to make sure I rewrite the json inside the zip to all be relative. Otherwise all clients are likely to go right back to the separate files after they see the top level catalog with links to the children as separate independent json files via http.

@digidude
Copy link

digidude commented Aug 5, 2022

Does the existing stac-fastapi server have compressed HTTP (gzip,...) enabled?

@gadomski
Copy link
Member Author

gadomski commented Aug 8, 2022

I don't know, I'd recommend asking over there: https://github.com/stac-utils/stac-fastapi/issues

@gadomski gadomski added this to the 0.5.0 milestone Mar 17, 2023
@gadomski gadomski removed this from the 0.5.0 milestone Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants