stac-io 0.2.8

Input and output (I/O) for the SpatioTemporal Asset Catalog (STAC)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use stac::Catalog;

#[test]
fn read_from_s3() {
    tokio_test::block_on(async {
        let (store, path) = stac_io::parse_href_opts(
            "s3://nz-elevation/catalog.json",
            [("skip_signature", "true"), ("region", "ap-southeast-2")],
        )
        .unwrap();
        let _: Catalog = store.get(path).await.unwrap();
    });
}