7 releases
new 0.0.7 | Apr 11, 2024 |
---|---|
0.0.6 | Oct 18, 2023 |
0.0.3 | Apr 4, 2023 |
0.0.2 | Sep 20, 2022 |
0.0.1 | May 20, 2022 |
#997 in Science
30KB
361 lines
stac-cli
Command line interface to stac-rs.
Installation
Install rust. rustup works well. Once you do:
cargo install stac-cli
Features
There is one opt-in feature, gdal
:
cargo install stac-cli -F gdal
This will enable the projection and raster extensions for created items.
Usage
Use the cli --help
flag to see all available options:
stac --help
Item
Create a STAC Item from an href:
stac item https://storage.googleapis.com/open-cogs/stac-examples/20201211_223832_CS2.tif
Search
Search a STAC API:
stac search https://earth-search.aws.element84.com/v1 \
-c sentinel-2-l2a \
--max-items 1 \
--sortby='-properties.datetime' \
--intersects '{"type":"Point","coordinates":[-105.1019,40.1672]}'
Validate
Validate a STAC item:
stac validate https://raw.githubusercontent.com/radiantearth/stac-spec/master/examples/simple-item.json
Sort
Sort the fields of a STAC item into the order they're specified in the spec:
stac sort https://raw.githubusercontent.com/radiantearth/stac-spec/master/examples/simple-item.json
Dependencies
~19–36MB
~552K SLoC