Commit Graph

18 Commits

Author SHA1 Message Date
David Bitner 15e7deabed Fix SQL injection vulnerability. Fix bug with schema prefixed tables. (#889)
* Do not use str.format() for database queries. Ensure that pg columns returned respect schema prefix.

* quotes not needed with %s

* use sorted on test array comparison

* linting
2022-04-25 20:37:02 -04:00
James Robinson eb891010b7 Add support for materialised views to postgres provider (#827) 2021-12-07 18:00:08 -05:00
James Robinson 3969fc0b19 Add support for config file properties to PostgreSQL provider (#829)
* 🐛 Add support for the properties keyword from the config file

* 🚨 Fixed flake8 errors

*  Added a test for config properties
2021-12-06 07:58:39 -05:00
Benjamin Webb a54fd6a908 Add postgres provider query parameters (#784)
* Add sortby, skip_geometry, and select_properties

* some pytest fixes

* Update main.yml

* Update main.yml

* fix geom in response feature

* more pytest fixes

* Update postgresql.py

* Update test_postgresql_provider.py

* Update test_postgresql_provider.py

* Add to docs, fix pytest

* fix for when when 'name' = None

* Update test_postgresql_provider.py

* Update test_postgresql_provider.py

* Remove optional comparator

* use secrets with default password

* Add secret to load postgres data
2021-09-25 07:03:38 -04:00
Tom Kralidis da824fba8f add support for OGC API - Coverages (#110) (#516)
* add support for OGC API - Coverages

* fix coverage CRS ref

* fix ref to OACov schemas for testing

* move spectral testing to after_success

* update docs

* add mask param to rasterio provider
2020-08-21 09:52:17 -04:00
Francesco Bartoli b8dbd9673c Catch http errors and item not found (#416)
Change class name


Fix flake8


Fix exceptions order


Add missing class name changes


Fix get function for geojson provider


Fix get function for ES provider


Fix ES tests


Fix ES tests


Change word


Fix get function for csv and mongo providers


Fix import


Fix flake8


Fix get function for sqlite/gpkg provider


Fix get function for PG provider


Fix postgres tests


Fix postgres tests


Fix postgres tests
2020-04-21 14:48:02 -04:00
Jorge S. Mendes de Jesus a16ac938cc where implementation on resulttype=hits 2020-02-23 08:34:35 +01:00
Andrew Yan 0b142f2991 Merge branch 'master' of github.com:geopython/pygeoapi into bbox-query 2019-11-04 08:50:21 -06:00
Mary Bucknell e4a36e7248 Add ability to filter by properties to postgresql provider. (#283)
* The json_serial function needs to be provided in order to dump decimal.Decimal values correctly.

* Added ability to filter on property values

* Added allow_property_filters config parameter.

* Added tests for ability to filter on properties

* Add comment to describe fields attribute

* Fixed PEP8 issues

* Missed a PEP8 lint error

* Added name to authors list

* Consistent string formatting

* Remove config parameter allow_property_filtering

* Revert logging statement
2019-11-02 06:25:29 -04:00
Andrew Yan 5df936d65e http://docs.opengeospatial.org/DRAFTS/17-069r1.html#_parameter_bbox specify that bbox queries should use intersect rather than contains 2019-11-01 09:06:23 -05:00
Andrew Yan fe4c02a388 Merge branch 'master' of github.com:geopython/pygeoapi into bbox-query 2019-10-28 16:43:33 -05:00
Andrew Yan f9685b3b86 cutdown excessively long lines 2019-10-23 14:51:45 -05:00
Andrew Yan 3bd7fc2724 switch spatial operator from intersects to contained-by 2019-10-23 14:03:01 -05:00
Andrew Yan 89d8905c8d support a bbox for the postgres provider 2019-10-23 13:39:22 -05:00
Jorge de Jesus d9d749ad8a implements search paths and user defined geom 2019-10-20 17:14:55 +02:00
Tom Kralidis fcc3b37693 fix GeoJSON response for PostgreSQL, SQLite and GeoPackage (#95) 2019-09-12 07:29:40 -04:00
Tom Kralidis 1fd8056b7c address OSGeo incubation committee comments 2019-06-04 03:17:00 +00:00
Jorge Samuel Mendes de Jesus c621b21391 Postgis provider support (#72)
* 	new file:   docker/Dockerfile
Dockerfile for pygeoapi

* testing postgis on travis

* testing 9.6

* install postgis as package

* create database

* postgis dataset - travis

* missing path

* 	modified:   tests/data/hotosm_bdi_waterways.sql.gz

Change in name of dataset

* postgresql code

* 	modified:   pygeoapi/provider/postgresql.py
update with origin

* Postgresql working provider, typo in geopackage

* update to travis. Change on gpkg

* missing dep (psycopg2)

* pytest

* problem with operator in travis

* ProviderConnectionError implementation

* postgresql with schema support

* Changes requested by @tomkralidis

* missing pygeoapi-config.yml

* delete openapi.yml

deleted openapi.yml
2018-11-16 11:53:31 -05:00