From 1dbdb23dc026ade6504632ebd9db31c89b0241a8 Mon Sep 17 00:00:00 2001 From: LAMBARE Aubin Date: Sat, 8 Jun 2024 12:43:29 +0200 Subject: [PATCH] fix: use id instead of title in item id metadata --- eodag/resources/stac.yml | 2 +- eodag/rest/stac.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eodag/resources/stac.yml b/eodag/resources/stac.yml index d889507295..18e9ad8605 100644 --- a/eodag/resources/stac.yml +++ b/eodag/resources/stac.yml @@ -165,7 +165,7 @@ items: item: stac_version: "{stac_version}" stac_extensions: - id: '$.product.properties.title' + id: '$.product.properties.id' bbox: - '{item[geometry].bounds[0]}' - '{item[geometry].bounds[1]}' diff --git a/eodag/rest/stac.py b/eodag/rest/stac.py index 1764ccd9f1..de3f92299a 100644 --- a/eodag/rest/stac.py +++ b/eodag/rest/stac.py @@ -310,7 +310,7 @@ def __get_item_list( # parse download link downloadlink_href = ( - f"{catalog['url']}/items/{product.properties['title']}/download" + f"{catalog['url']}/items/{product.properties['id']}/download" ) _dc_qs = product.properties.get("_dc_qs", None) url_parts = urlparse(downloadlink_href)