diff --git a/crates/ui-egui/src/stacui.rs b/crates/ui-egui/src/stacui.rs index b20995849d..b4a5cb10e1 100644 --- a/crates/ui-egui/src/stacui.rs +++ b/crates/ui-egui/src/stacui.rs @@ -184,7 +184,7 @@ impl Default for State { connection: None, listed: String::new(), collections: Vec::new(), - collection: "sentinel-2-l2a".into(), + collection: "sentinel-2-c1-l2a".into(), from: String::new(), to: String::new(), use_view: true, @@ -1166,6 +1166,8 @@ mod tests { assert_eq!(Preset::from_id(p.id()), Some(p)); } assert_eq!(Preset::from_id("nope"), None); + // The dialog opens on Collection 1: the legacy `sentinel-2-l2a` declares an offset that many of its files lack. + assert_eq!(State::default().collection, "sentinel-2-c1-l2a"); let d = days_ago(0); assert!(d.len() == 10 && d.starts_with("20"), "{d}"); let mut app = RustGisApp::with_sample(); diff --git a/docs/user-guide/web-data.md b/docs/user-guide/web-data.md index 49704861ae..26fb79f5f5 100644 --- a/docs/user-guide/web-data.md +++ b/docs/user-guide/web-data.md @@ -64,7 +64,7 @@ and `stac.addAsset` with an item returned by `stac.search` (`"item"`) or an item (`"url"`) and `"asset"`. API searches return one page and a `"next"` address when there is another: ```sh -rustgis-cli run --cmd 'stac.search={"collections":"sentinel-2-l2a","bbox":[7.4,46.9,7.5,47],"datetime":"2024-07-01/2024-07-31","maxCloud":20}' --cmd 'stac.addAsset={"url":"https://earth-search.aws.element84.com/v1/collections/sentinel-2-l2a/items/S2B_32TLS_20240727_0_L2A","asset":"scl"}' +rustgis-cli run --cmd 'stac.search={"collections":"sentinel-2-c1-l2a","bbox":[7.4,46.9,7.5,47],"datetime":"2024-07-01/2024-07-31","maxCloud":20}' --cmd 'stac.addAsset={"url":"https://earth-search.aws.element84.com/v1/collections/sentinel-2-c1-l2a/items/S2B_T32TLS_20240727T103439_L2A","asset":"scl"}' ``` Assets can use HTTP(S) or `s3://` addresses. S3 assets use the saved connection serving their