Skip to content

Commit

Permalink
fix: use id instead of title in item id metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
alambare committed Jun 8, 2024
1 parent 2c37db3 commit 1dbdb23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eodag/resources/stac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]}'
Expand Down
2 changes: 1 addition & 1 deletion eodag/rest/stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1dbdb23

Please sign in to comment.