Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/ui-egui/src/stacui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/web-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading