-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
During the development of the QGIS tutorials for the STAC site, I ran into the following error when trying to utilize the Advanced filter of the STAC QGIS Plugin:
@lossyrob confirmed that the Planetary Computer API and STAC query were working as expected by successfully using this code sample:
import requests
url = "https://planetarycomputer.microsoft.com/api/stac/v1/search"
body = {
"collections": ["landsat8", "sentinel-2-l2a"],
"bbox": [-10.415,36.066,3.779,44.213],
"limit": 200,
"datetime": "2022-06-01T00:00:00Z/2022-06-30T00:00:00Z",
"query": {
"eo:cloud_cover": {
"gte": 0,
"lte": 10
},
}
}
resp = requests.post(url, json=body)
assert resp.status_code == 200
This leads us to believe that the issue is occurring somewhere in the QGIS plugin. I will be reaching out to the maintainers of the plugin to further progress on fixing this issue. Once the QGIS plugin is performing the queries as expected, we will add in a section to the second QGIS tutorial to teach the user how to use the Advanced filter of the STAC API Browser QGIS plugin.
Metadata
Metadata
Assignees
Labels
No labels
