Commit b281f9b
authored
Further Fixes for STAC Search (#2340)
* Fix STAC search endpoint reference
This mistakenly used double slashes in the URL
which would break the output. A single slash fixes
this.
Closes #2354
* Assets should be dict, not list
As specified in the STAC spec: https://stacspec.org/en/about/stac-spec/
assets are dicts, not lists. When missing,
now they are initialized as the correct empty
data structures.
Closes #2354
* Correctly initialize temporal instant
Previously the `datetime` field was not used to initalize
the temporal instant, causing it to be overridden by
other approximations.
This ensure that the initialization happens correctly,
and the overrides only occur in cases when `datetime`
is None.
Closes #23561 parent 4eaef8e commit b281f9b
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | | - | |
384 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
385 | 387 | | |
386 | 388 | | |
387 | 389 | | |
| |||
488 | 490 | | |
489 | 491 | | |
490 | 492 | | |
| 493 | + | |
491 | 494 | | |
492 | 495 | | |
493 | 496 | | |
494 | 497 | | |
495 | | - | |
| 498 | + | |
496 | 499 | | |
497 | 500 | | |
498 | 501 | | |
499 | 502 | | |
500 | 503 | | |
501 | 504 | | |
502 | | - | |
| 505 | + | |
| 506 | + | |
503 | 507 | | |
504 | 508 | | |
505 | 509 | | |
| |||
0 commit comments