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

Support as many stactools subcommands as is reasonable #442

Open
2 of 16 tasks
gadomski opened this issue Sep 25, 2024 · 2 comments
Open
2 of 16 tasks

Support as many stactools subcommands as is reasonable #442

gadomski opened this issue Sep 25, 2024 · 2 comments
Labels
[crate] cli stac-cli

Comments

@gadomski
Copy link
Member

gadomski commented Sep 25, 2024

If we do want to be The One STAC CLI™, we should provide most of the functionality that exists in other CLis.

  • add: Add an item to a catalog/collection.
  • add-asset: Add an asset to an item or collection.
  • add-raster: Add raster extension to an Item.
  • copy: Copy a STAC Catalog
  • create-item: Creates an item from an asset
  • describe: Prints out a list of all catalogs, collections and items in this STAC.
  • info: Display info about a static STAC catalog.
  • layout: Reformat the layout of a STAC based on templating.
  • [ ] lint: Lint a stac object with stac-check. Will not support, don't want to depend on stac-check
  • merge: Merge items from one STAC into another.
  • migrate: Migrate a STAC object to the latest version
  • move-assets: Move or copy assets in a STAC catalog to the locations...
  • summary: Summarize a STAC collection's contents.
  • update-extent: Update a STAC collection's extent.
  • update-geometry: Update an item geometry from an asset footprint
  • validate: Validate a stac object.
  • version: Display version info.
@gadomski gadomski added the [crate] cli stac-cli label Sep 25, 2024
@alekzvik
Copy link
Contributor

I have seen support for the item command in the history, but you removed it.

I also suspect that adding some commands requires a dependency for reading the asset metadata (e.g. projection, spatial extent, etc.). I think GDAL bindings can cover this, but it's a significant dependency.

Is feature-parity with stactools still a goal for this project?
Do you mind adding GDAL as a dependency?

@gadomski
Copy link
Member Author

Do you mind adding GDAL as a dependency?

I've had it, and I've removed it. I think it'd be best as a separate crate, e.g. stac-gdal. I think the main stac crate has enough optional features.

So for stuff like item, we'd add a stac-gdal crate, add the functionality there, then use that in stac-cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[crate] cli stac-cli
Projects
None yet
Development

No branches or pull requests

2 participants