From eb2a92de0844ab90dbfcaab327ff171942779bb3 Mon Sep 17 00:00:00 2001 From: "Jorge S. Mendes de Jesus" Date: Mon, 24 Feb 2020 18:49:25 +0100 Subject: [PATCH] Revert "compatible with the commit 0ae2084" This reverts commit 982166728a78336192ed4b75ad4c0a3708b627a8. modified: pygeoapi/provider/postgresql.py modified: requirements-provider.txt --- pygeoapi/provider/postgresql.py | 2 +- requirements-provider.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pygeoapi/provider/postgresql.py b/pygeoapi/provider/postgresql.py index 9a8b74d..564255d 100644 --- a/pygeoapi/provider/postgresql.py +++ b/pygeoapi/provider/postgresql.py @@ -252,7 +252,7 @@ class PostgreSQLProvider(BaseProvider): properties=properties, bbox=bbox) sql_query = SQL("DECLARE \"geo_cursor\" CURSOR FOR \ - SELECT DISTINCT {},ST_AsGeoJSON({}) FROM {}{}").\ + SELECT {},ST_AsGeoJSON({}) FROM {}{}").\ format(db.columns, Identifier(self.geom), Identifier(self.table), diff --git a/requirements-provider.txt b/requirements-provider.txt index dc964e0..29c3121 100644 --- a/requirements-provider.txt +++ b/requirements-provider.txt @@ -1,4 +1,4 @@ elasticsearch==7.1.0 GDAL>=2.2,<3.0 -psycopg2-binary==2.7.6 +psycopg2==2.7.6 pymongo