radiantearth / stac-browser

A full-fledged UI in Vue for browsing and searching static STAC catalogs and STAC APIs
https://radiantearth.github.io/stac-browser
ISC License
284 stars 140 forks source link

Supporting CQL Advanced Operators #495

Closed mngspb closed 4 days ago

mngspb commented 1 month ago

Hi Matthias,

I noticed that CQL advanced operators (e.g.: LIKE) has been supported since the version 3.0.1. I'm using STAC Browser (https://radiantearth.github.io/stac-browser) version 3.2.0 to point to a STAC API that is supporting CQL advanced operators BUT the LIKE operator is not shown in the “additional filters” section.

Could you tell me how to get the LIKE operator (and BEWTEEN, IN operators) shown?

Thank in advance, Minh

m-mohr commented 1 month ago

STAC Browser checks for http://www.opengis.net/spec/cql2/1.*/req/advanced-comparison-operators * = wildcard

You are exposing http://www.opengis.net/spec/cql2/1.0/conf/advanced-comparison-operators in https://emc.spacebel.be/conformance.

That's the difference. I quess your conformance URI is correct, so this needs to be confirmed and fixed. Or we check for both...

Don't have the time to confirm right now, so PRs are welcome. Code is in the src\components\ApiCapabilitiesMixin.js

drnextgis commented 4 days ago

I've encountered the same issue. Since we are using stac-fastapi as our STAC server, we're getting the value defined here. Additionally, the OGC standard specifies the reference URI as:

http://www.opengis.net/spec/cql2/1.0/conf/advanced-comparison-operators

But in another section:

http://www.opengis.net/spec/cql2/1.0/req/advanced-comparison-operators
drnextgis commented 4 days ago

The current dropdown appears like this, with the third item hidden behind the sort input. image