Skip to content

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

@PowerChell

Description

@PowerChell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions