Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Temporal filter incompatible with STAC API spec #78

Open
micpilon opened this issue Sep 30, 2020 · 1 comment · May be fixed by #79
Open

Temporal filter incompatible with STAC API spec #78

micpilon opened this issue Sep 30, 2020 · 1 comment · May be fixed by #79

Comments

@micpilon
Copy link

Queries made by the STAC browser are likely not compatible with the STAC API specification, in which time is parsed with the datetime argument.

For example, an HTTP request sent was:

POST https://.../api//search HTTP/1.1
Accept-Encoding: identity
Host: ...
User-Agent: Python-urllib/3.7
Content-Type: application/json; charset=utf-8
Content-Length: 183
Connection: close

{"collections": ["markham"], "bbox": [-123.6308868661519, 36.02789736179574, -28.151779495509228, 52.37970698302373], "time": "1959-01-01T00:00:00Z/1961-01-01T00:00:00Z", "limit": 50}

Which uses the time keyword for temporal filtering. This leads to ignoring the filter from the API's standpoint and loading all the items.

@ymoisan
Copy link

ymoisan commented Sep 30, 2020

The culprit :

'time': time,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants