Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cql-json support for ES #723

Merged
merged 1 commit into from
Jul 22, 2021

Conversation

francbartoli
Copy link
Contributor

This pull request replces #670 and adds an early implementation of CQL support for the Elasticsearch provider with the CQL-JSON dialect. It supports the following type of queries:

  • between predicate query
  • Logical and query with between and eq expression
  • Spatial query with bbox

pygeoapi/api.py Show resolved Hide resolved
pygeoapi/api.py Outdated Show resolved Hide resolved
pygeoapi/api.py Outdated Show resolved Hide resolved
pygeoapi/api.py Show resolved Hide resolved
@francbartoli francbartoli force-pushed the feature/cql-json-new branch 5 times, most recently from 4819db1 to a197c1d Compare July 20, 2021 11:18
Copy link
Member

@tomkralidis tomkralidis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @francbartoli. My only questions are around use of nest_asyncio (does this have to be in pygeoapi/api.py or can we use in the starlette specific code?) and future-annotations.

@francbartoli
Copy link
Contributor Author

Looks great @francbartoli. My only questions are around use of nest_asyncio (does this have to be in pygeoapi/api.py or can we use in the starlette specific code?) and future-annotations.

@tomkralidis nest_asyncio fixes the APIRequest class with starlette (which was broken before) and future-annotations can be abandoned once we'll deprecate python 3.6

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
@tomkralidis tomkralidis merged commit bb4cd0b into geopython:master Jul 22, 2021
@tomkralidis
Copy link
Member

Excellent work @francbartoli !

@francbartoli francbartoli deleted the feature/cql-json-new branch July 22, 2021 10:27
DManowitz added a commit to DManowitz/pygeoapi-feedstock that referenced this pull request Jan 15, 2024
Although I was not able to find a minimum Python version referenced in setup.py, this comment (geopython/pygeoapi#723 (comment)) from a prior PR seems to indicate that `future-annotations` should be dropped as a requirement when Python 3.6 is no longer supported, so if they've dropped `future-annotations` as a dependency, I'm assuming that they're no longer supporting Python 3.6, either.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request OGC API - Features OGC API - Features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants