Replies: 1 comment 3 replies
-
|
Looking at https://planetarycomputer.microsoft.com/explore?c=-59.7036%2C-8.5442&z=4.39&v=2&d=sentinel-2-l2a&s=false%3A%3A100%3A%3Atrue&ae=0&sr=desc&m=cql%3A1c28c5ba255d0d7b2b03010cccefd8a4&r=Natural+color, there's the "Explore results in Hub" generates the cql-json passed to pystac-client. Passing that to curl seems to work: curl --get \
--data-urlencode '{"op": "and","args": [{"op": "s_intersects", "args": [{"property": "geometry"}, aoi]},{"op": "anyinteracts", "args": [{"property": "datetime"}, daterange]},{"op": "=", "args": [{"property": "collection"}, "sentinel-2-l2a"]},{"op": "in", "args": [{"property": "s2:mgrs_tile"}, ["20LNP", "20LKP"]]}]}' \
-d "filter-lang=cql2-json" \
https://planetarycomputer.microsoft.com/api/stac/v1/search@mmcfarland might be able to say more, but IIRC cql2-json is maybe preferred over cql2-text... I don't recall the details. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are performing some tests with CQL2's filter extension and have encountered the following issue. We want to retrieve the
20LKPand20LNPtiles from thesentinel-2-l2acollection:So far so good. However, when we use the
INoperator to simplify the expression, we get the following error:We looked a little further to see if the problem was with the
INoperator, so we made the following queries:Both queries worked as expected. However, when we use the operator
IN, an error occurs:Any idea what might be going on?
Beta Was this translation helpful? Give feedback.
All reactions