Add cql-json support for ES (#723)

Fix starlette event loop


Fix starlette event loop


Fix starlette event loop


Fix starlette event loop


Fix provider regression


Make method public


Make method public


Move function to the helpers utility


Add the CQL lifecycle for development


Add CQL docs


Fix flake8


Isolate import for starlette codepath
This commit is contained in:
Francesco Bartoli
2021-07-22 03:00:14 +02:00
committed by GitHub
parent 0f38c764d6
commit bb4cd0bf69
18 changed files with 1431 additions and 35 deletions
@@ -15,17 +15,17 @@ pygeoapi core feature providers are listed below, along with a matrix of support
parameters.
.. csv-table::
:header: Provider, properties (filters), resulttype, bbox, datetime, sortby, properties (display)
:header: Provider, properties (filters), resulttype, bbox, datetime, sortby, properties (display), CQL
:align: left
CSV,❌,results/hits,❌,❌,❌,✅
Elasticsearch,✅,results/hits,✅,✅,✅,✅
GeoJSON,❌,results/hits,❌,❌,❌,❌
MongoDB,✅,results,✅,✅,✅,❌
OGR,✅,results/hits,✅,❌,❌,❌
PostgreSQL,✅,results/hits,✅,❌,❌,❌
SQLiteGPKG,✅,results/hits,✅,❌,❌,❌
SensorThingsAPI,✅,results/hits,✅,✅,✅,✅
CSV,❌,results/hits,❌,❌,❌,✅,❌
Elasticsearch,✅,results/hits,✅,✅,✅,✅,✅
GeoJSON,❌,results/hits,❌,❌,❌,❌,❌
MongoDB,✅,results,✅,✅,✅,❌,❌
OGR,✅,results/hits,✅,❌,❌,❌,❌
PostgreSQL,✅,results/hits,✅,❌,❌,❌,❌
SQLiteGPKG,✅,results/hits,✅,❌,❌,❌,❌
SensorThingsAPI,✅,results/hits,✅,✅,✅,✅,❌
Below are specific connection examples based on supported providers.
@@ -65,6 +65,7 @@ To publish a GeoJSON file, the file must be a valid GeoJSON FeatureCollection.
data: tests/data/file.json
id_field: id
.. _Elasticsearch:
Elasticsearch
^^^^^^^^^^^^^
@@ -87,6 +88,11 @@ To publish an Elasticsearch index, the following are required in your index:
id_field: geonameid
time_field: datetimefield
This provider has the support for the CQL queries as indicated in the table above.
.. seealso::
:ref:`cql` for more details on how to use the Common Query Language to filter the collection with specific queries.
OGR
^^^