Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Earth-search provider incorrectly configured #965

Open
louisstuart96 opened this issue Dec 18, 2023 · 2 comments · May be fixed by #1053
Open

Earth-search provider incorrectly configured #965

louisstuart96 opened this issue Dec 18, 2023 · 2 comments · May be fixed by #1053
Assignees
Labels
bug Something isn't working

Comments

@louisstuart96
Copy link

louisstuart96 commented Dec 18, 2023

Describe the bug
Earth-search is an EODAG provider using StacSearch as its search plugin. Using current configuration in providers.yml cannot retrieve correct products (STAC items) from Earth-search.

To Reproduce
Use EODAG's RESTful API to request items:
GET /collections/S2_MSI_L1C/items?provider=earth_search
The response consists of item(s) like:

"links": [
  {
    "rel": "self",
    "title": "S2B_MSIL1C_20210608T025549_N0300_R032_T50RLR_20210608T044415",
    "href": "http://127.0.0.1:5000/collections/S2_MSI_L1C/items/S2B_MSIL1C_20210608T025549_N0300_R032_T50RLR_20210608T044415"
  },
],
"id": "S2B_MSIL1C_20210608T025549_N0300_R032_T50RLR_20210608T044415",

Then, even with provider=earth_search query string, the request

GET /collections/S2_MSI_L1C/items/S2B_MSIL1C_20210608T025549_N0300_R032_T50RLR_20210608T044415?provider=earth_search

gets item from another provider like creodias rather than earth_search itself.

Additional context
The original STAC item request corresponding to above is https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l1c/items/S2B_50RLR_20210608_0_L1C. The response is like:

{
    "id": "S2B_50RLR_20210608_0_L1C",
    "properties": {
        "datetime": "2021-06-08T03:10:06Z",
        "sentinel:product_id": "S2B_MSIL1C_20210608T025549_N0300_R032_T50RLR_20210608T044415",
        "created": "2021-06-08T05:28:04.836Z",
        "updated": "2021-06-08T05:28:04.836Z"
    },
}

Requests like

GET /collections/S2_MSI_L1C/items/S2B_50RLR_20210608_0_L1C?provider=earth_search

gives the expected response. Therefore, it seems S2B_50RLR_20210608_0_L1C is the correct feature ID for querying the product, not the value of property sentinel:product_id

@louisstuart96 louisstuart96 added the bug Something isn't working label Dec 18, 2023
@sbrunato
Copy link
Collaborator

sbrunato commented Dec 18, 2023

Hello @louisstuart96 and thanks for submitting this issue.
This has to be fixed, id queryable should be mapped to sentinel:product_id for S2_MSI_L1C on earth_search

@louisstuart96
Copy link
Author

@sbrunato Thanks for replying!
earth_search provides two Sentinal-2 products S2_MSI_L1C and S2_MSI_L2A. Both products need correct mapping.

@dalpasso dalpasso self-assigned this Mar 1, 2024
@dalpasso dalpasso linked a pull request Mar 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants