stac 0.10.0

Rust library for the SpatioTemporal Asset Catalog (STAC) specification
Documentation
1
2
3
4
5
6
7
8
9
use rstest::rstest;
use stac::{Migrate, Value, Version};
use std::path::PathBuf;

#[rstest]
fn v1_0_0_to_v1_1_0(#[files("../spec-examples/v1.0.0/**/*.json")] path: PathBuf) {
    let value: Value = stac::read(path.to_str().unwrap()).unwrap();
    let _ = value.migrate(&Version::v1_1_0).unwrap();
}