Closed bossie closed 1 month ago
Underlying STAC API request:
returns
{
"type": "FeatureCollection",
"features": [
{
"properties": {
"proj:shape": [
7371,
8191
],
"proj:epsg": 32631
},
"links": [
{
"rel": "collection",
"type": "application/json",
"href": "https://planetarycomputer.microsoft.com/api/stac/v1/collections/landsat-c2-l2"
},
{
"rel": "parent",
"type": "application/json",
"href": "https://planetarycomputer.microsoft.com/api/stac/v1/collections/landsat-c2-l2"
},
{
"rel": "root",
"type": "application/json",
"href": "https://planetarycomputer.microsoft.com/api/stac/v1/"
},
{
"rel": "self",
"type": "application/geo+json",
"href": "https://planetarycomputer.microsoft.com/api/stac/v1/collections/landsat-c2-l2/items/LT05_L2SP_199024_20100406_02_T1"
}
]
}
],
"links": [
{
"rel": "root",
"type": "application/json",
"href": "https://planetarycomputer.microsoft.com/api/stac/v1/"
},
{
"rel": "self",
"type": "application/json",
"href": "https://planetarycomputer.microsoft.com/api/stac/v1/search?limit=20&bbox=3.143622080824514,51.30768529127022,3.272047105221418,51.365902618479595&datetime=2010-04-06T00:00:00Z/2010-04-06T23:59:59.999000Z&collections=landsat-c2-l2&fields=+properties.proj:epsg,+properties.proj:shape,+properties.proj:bbox"
}
]
}
which is indeed not a valid STAC Item.
Regression was most likely introduced in https://github.com/Open-EO/openeo-geopyspark-driver/issues/781.
Fixed by recognizing that explicitly requesting proj:
metadata (#781) from the MSPC STAC API makes it drop other properties in the response so we don't do that anymore for this STAC API (it was already treated special in the code).
Terrascope integration test
test_load_stac_from_planetary_computer_stac_api
started failing: