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

Add Advanced Filter to STAC QGIS Plugin Tutorial #2 #68

Open
PowerChell opened this issue Apr 18, 2023 · 0 comments
Open

Add Advanced Filter to STAC QGIS Plugin Tutorial #2 #68

PowerChell opened this issue Apr 18, 2023 · 0 comments

Comments

@PowerChell
Copy link
Collaborator

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:

STAC QGIS plugin advanced filter error

@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.

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

No branches or pull requests

1 participant