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