You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These projects have or are developing CQL2 support:
235
239
236
-
-[stac-fastapi-pgstac](https://github.com/stac-utils/stac-fastapi-pgstac) has support via [pgstac](https://github.com/stac-utils/pgstac) for CQL2 Text and CQL2 JSON
237
-
-[pygeofilter](https://github.com/geopython/pygeofilter) handles both CQL2 Text and CQL2 JSON, including the ability to convert from CQL2 Text to CQL2 JSON
240
+
-[stac-fastapi-pgstac](https://github.com/stac-utils/stac-fastapi-pgstac) has support via
241
+
[pgstac](https://github.com/stac-utils/pgstac) for CQL2 Text and CQL2 JSON
242
+
-[pygeofilter](https://github.com/geopython/pygeofilter) handles both CQL2 Text and CQL2 JSON,
243
+
including the ability to convert from CQL2 Text to CQL2 JSON
238
244
-[xtraplatform-spatial](https://github.com/interactive-instruments/xtraplatform-spatial) has support for CQL2 Text and provides an [ANTLR 4 grammer](https://github.com/interactive-instruments/xtraplatform-spatial/tree/master/xtraplatform-cql/src/main/antlr/de/ii/xtraplatform/cql/infra)
239
245
-[Geotools](https://github.com/geotools/geotools) has support for [CQL2 text](https://github.com/geotools/geotools/tree/main/modules/library/cql/src/main/java/org/geotools/filter/text/cql2)
240
246
@@ -245,9 +251,11 @@ not compliant with this extension.
245
251
246
252
## Queryables
247
253
248
-
The Queryables mechanism allows a client to discover what terms are available for use when writing filter
249
-
expressions. These terms are defined both over the entire catalog (at `/queryables`) and per collection (at `/collections/{collectionId}/queryables`). The decision as to which queryables to define
250
-
for the entire catalog is at the discretion of the implementer, and can be anywhere between none and the union of all
254
+
The Queryables mechanism allows a client to discover what terms are available for use when
255
+
writing filter expressions. These terms are defined both over the entire catalog
256
+
(at `/queryables`) and per collection (at `/collections/{collectionId}/queryables`).
257
+
The decision as to which queryables to define for the entire catalog is at the discretion
258
+
of the implementer, and can be anywhere between none and the union of all
251
259
queryables across all collections.
252
260
253
261
By default, the queryables are the only terms that may be used
@@ -488,7 +496,7 @@ This example uses the queryables definition in (Interaction with Endpoints)(#int
488
496
Note that `filter-lang` defaults to `cql2-text` in this case. The parameter `filter-crs` defaults
489
497
to `http://www.opengis.net/def/crs/OGC/1.3/CRS84` for a STAC API.
490
498
491
-
```
499
+
```text
492
500
filter=id='LC08_L1TP_060247_20180905_20180912_01_T1_L1TP' AND collection='landsat8_l1tp'
493
501
```
494
502
@@ -524,7 +532,7 @@ OGC API Features filters only operate against a single collection already.
524
532
525
533
#### Example 2: GET with cql2-text
526
534
527
-
```
535
+
```text
528
536
filter=collection = 'landsat8_l1tp'
529
537
AND eo:cloud_cover <= 10
530
538
AND datetime >= TIMESTAMP('2021-04-08T04:39:23Z')
@@ -676,7 +684,7 @@ a tiny sliver of data.
676
684
677
685
#### Example 3: AND cql2-text (GET)
678
686
679
-
```
687
+
```text
680
688
filter=sentinel:data_coverage > 50 AND eo:cloud_cover < 10
681
689
```
682
690
@@ -710,7 +718,7 @@ This uses the same queryables as Example 3.
710
718
711
719
#### Example 4: OR cql2-text (GET)
712
720
713
-
```
721
+
```text
714
722
filter=sentinel:data_coverage > 50 OR eo:cloud_cover < 10
715
723
```
716
724
@@ -766,7 +774,7 @@ This queryables JSON Schema is used in these examples:
766
774
767
775
#### Example 5: GET with cql2-text
768
776
769
-
```
777
+
```text
770
778
filter=prop1 = prop2
771
779
```
772
780
@@ -794,7 +802,7 @@ have any overlap between them.
0 commit comments