+3
-2
@@ -32,7 +32,7 @@ The PostgreSQL provider uses `pygeofilter <https://github.com/geopython/pygeofil
|
||||
|
||||
* `Comparison predicates <https://portal.ogc.org/files/96288#simple-cql_comparison-predicates>`_
|
||||
* `Spatial predicates <https://portal.ogc.org/files/96288#enhanced-spatial-operators>`_
|
||||
* `Temporal predicates <https://portal.ogc.org/files/96288#simple-cql_temporal>
|
||||
* `Temporal predicates <https://portal.ogc.org/files/96288#simple-cql_temporal>`_
|
||||
|
||||
Using Elasticsearch the following type of queries are supported right now:
|
||||
|
||||
@@ -80,6 +80,7 @@ The same ``BETWEEN`` query using HTTP GET request formatted as CQL text and URL
|
||||
An ``EQUALS`` example for a specific property:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
curl --location --request POST 'http://localhost:5000/collections/recentearthquakes/items?f=json&limit=10&filter-lang=cql-json'
|
||||
--header 'Content-Type: application/query-cql-json'
|
||||
--data-raw '{
|
||||
@@ -92,4 +93,4 @@ A ``CROSSES`` example via an HTTP GET request. The CQL text is passed via the `
|
||||
|
||||
curl "http://localhost:5000/collections/hot_osm_waterways/items?f=json&filter=CROSSES(foo_geom,%20LINESTRING(28%20-2,%2030%20-4))"
|
||||
|
||||
Note the the CQL text has been URL encoded. This is required in CURL commands but when entering in a browser, plain text can be used e.g. ``CROSSES(foo_geom, LINESTRING(28 -2, 30 -4))``.
|
||||
Note that the CQL text has been URL encoded. This is required in curl commands but when entering in a browser, plain text can be used e.g. ``CROSSES(foo_geom, LINESTRING(28 -2, 30 -4))``.
|
||||
|
||||
@@ -94,7 +94,7 @@ To publish an Elasticsearch index, the following are required in your index:
|
||||
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.
|
||||
:ref:`cql` for more details on how to use Common Query Language (CQL) to filter the collection with specific queries.
|
||||
|
||||
|
||||
ESRI Feature Service
|
||||
@@ -209,6 +209,8 @@ MongoDB
|
||||
collection: testplaces
|
||||
|
||||
|
||||
.. _PostgreSQL:
|
||||
|
||||
PostgreSQL
|
||||
^^^^^^^^^^
|
||||
|
||||
@@ -236,7 +238,7 @@ Must have PostGIS installed.
|
||||
This provider has support for the CQL queries as indicated in the Provider table above.
|
||||
|
||||
.. seealso::
|
||||
:ref:`cql` for more details on how to use the Common Query Language (CQL) to filter the collection with specific queries.
|
||||
:ref:`cql` for more details on how to use Common Query Language (CQL) to filter the collection with specific queries.
|
||||
|
||||
SQLiteGPKG
|
||||
^^^^^^^^^^
|
||||
|
||||
@@ -52,7 +52,7 @@ Docker
|
||||
Using DockerHub
|
||||
^^^^^^^^^^^^^^^
|
||||
|
||||
`Docker image <https://hub.docker.com/r/geopython/pygeoapi>`_
|
||||
`Docker image`_
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
@@ -61,7 +61,7 @@ Using DockerHub
|
||||
Using GitHub Container Registry
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
`Docker image <https://github.com/geopython/pygeoapi/pkgs/container/pygeoapi>`_
|
||||
`Docker image`_
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
@@ -101,3 +101,6 @@ Summary
|
||||
-------
|
||||
Congratulations! Whichever of the abovementioned methods you chose, you have successfully installed pygeoapi
|
||||
onto your system.
|
||||
|
||||
|
||||
.. _`Docker image`: https://github.com/geopython/pygeoapi/pkgs/container/pygeoapi
|
||||
|
||||
@@ -1875,6 +1875,7 @@ class API:
|
||||
return self.get_exception(
|
||||
400, headers, request.format, 'InvalidParameterValue', msg)
|
||||
|
||||
# FIXME: remove testing backend in use once CQL support is normalized
|
||||
if p.name == 'PostgreSQL':
|
||||
LOGGER.debug('processing PostgreSQL CQL_JSON data')
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user