Commit Graph

218 Commits

Author SHA1 Message Date
Tom Kralidis a4478f817e fix schema imports as HTTPS (#961)
* fix schema imports as HTTPS

* fix schema imports as HTTPS
2022-08-10 10:12:39 -04:00
Tom Kralidis b3e766179f Update README.md 2022-07-28 22:02:58 -04:00
Benjamin Webb ac91bfe9b4 Provide source for items.geojson (#949) 2022-07-28 14:53:50 -04:00
Tom Kralidis 5c9e60f5d6 Update README.md (#946)
* Update README.md

* Update README.md
2022-07-27 14:53:17 -04:00
Just van den Broecke 24c1d6f870 Add Source info Dutch Addresses test data (#947)
As done.
2022-07-27 11:28:22 -04:00
Tom Kralidis 08f3380b6f update hidden resources concept (#934) 2022-07-11 07:45:10 -04:00
Benjamin Webb cd9e8ba7ee Update test_elasticsearch__provider.py (#936)
Update pytests re: https://github.com/geopython/pygeoapi/pull/935
2022-07-08 21:56:56 -04:00
Tom Kralidis 2d85eb2ac6 add support for non-advertised resources (#927) 2022-07-07 06:32:43 -04:00
Tom Kralidis 3b231c5fea add OpenAPI generate option to write to file (#919) (#925) 2022-06-21 21:03:19 -04:00
Tom Kralidis 427c46de7f update OARec links based on latest updates in specification (#915) 2022-05-30 09:46:40 -04:00
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
Tom Kralidis b132882513 display conformance based on configuration (#888) 2022-04-19 21:37:21 +02:00
Tom Kralidis 356fe1280c add skip_geometry to remaining feature providers (#887)
* skip geometry for SQLite/GPKG backends (#886)

* simplify GKPG

* add for remaining providers, add to doc
2022-04-19 13:44:56 -04:00
Tom Kralidis 36b88e0719 fix map ref for CITE setup 2022-04-16 18:34:23 -04:00
Tom Kralidis 09ad6f8fce Hierarchical collections (#885)
* add support for hierarchical collections

* fix JSON rendering in docs

* fix JSON rendering in docs

* fix tests

* update docs

* update HTML templates with collections path

* fix template error

* add test
2022-04-16 18:26:55 -04:00
Tom Kralidis 7e8496d999 fix ES GeoJSON response when properties= is detected (#878)
* fix ES GeoJSON response when properties= is detected

* ES: use keywords arguments

* fix tests

* fix

* fix
2022-03-31 03:54:52 -04:00
Martin Pontius 12abb81227 Add unit test for tinydb job manager with parallel requests (#872)
* Add unit test for tinydb job manager with parallel requests

* Add source code header

* Fix flake8 issues
2022-03-14 06:25:03 -04:00
Tom Kralidis f17c6936a0 OACov: change coverage range-subset to properties, update conformance classes (#870)
* OACov: change coverage range-subset to properties, update conformance classes

* fix conformance tests
2022-03-10 16:23:49 -05:00
Tom Kralidis 1c87e0005b move items startindex to offset 2022-03-08 14:51:53 -05:00
Tom Kralidis 76fd56a671 fix OAProc relation types (#846)
* [OAProc]: fix relation types (#845)

* [OAProc]: fix relation types (#845)
2022-01-25 06:42:09 -05:00
Tom Kralidis 5d072f4efa OAProc updates (#840)
* update OAProc jobs as a top-level resource (#838)

* update config

* update copyright year
2022-01-04 08:43:39 -05:00
Tom Kralidis 3e6ac1eea9 fix off by one error in ES provider (#839)
* fix off by one error in ES provider

* fix tests
2022-01-03 09:57:49 -05:00
Tom Kralidis 1b508c77cd support antimeridian bbox cases (#837) 2022-01-03 08:25:37 -05:00
Tom Kralidis aa8eee662c fix float detection for ES provider (#836)
* fix float detection for ES provider

* fix float detection for ES provider

* fix typo
2021-12-26 20:14:43 -05: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
Tom Kralidis 0ae95cb554 fix OACov subset parsing (#818) 2021-11-22 07:04:58 -05:00
Tom Kralidis fca8974432 [OACov] rename rangeSubset to range-subset for coverage queries (#816) 2021-11-19 09:25:13 -05:00
Tom Kralidis 91abdb9f8d update OACov content models (#809) (#813) 2021-11-11 08:35:58 -05:00
Benjamin Webb 205ff3002c Add Gzip to response types (#795)
* Add gzip to API.py

* pytest for gzip

* fix pytest

* Update test_api.py

* Add gzip to server block of configuration files

* Update api.py to include gzip opts from config

Update logic behind gzip compression  such that compression will only happen when gzip in the Accept-Encoding request header and config.server.gzip is True. Use server charset for encoding/decoding and include charset in Content-Type when compressed.

* Update pytest to use gzip config options

Update pytest to test with (gzip in Accept-Encoding & server.gzip = False), (gzip in Accept-Encoding & server.gzip = True), (gzip not in Accept-Encoding & server.gzip = True)

* Better Content Negotiation (#7)

* Change content negotiation in _get_format()

* Add to pytest and force h to always be string

* Force F_JSON to default response

* Update test_api.py for utf-16 encoding

* better content negotiation pytest.

* Add comments to pytest

* Fix flake 8

* Improve docstring for gzip decorator function
2021-10-27 20:17:02 -04:00
Tom Kralidis 4b85a6a8eb detect exact match for ES property queries (#793)
* detect exact match for ES property queries

* detect exact match for ES property queries

* update tests
2021-10-11 20:21:44 -04:00
Tom Kralidis 7b34101b7a make TinyDB q= queries case-insensitive (#792)
* make TinyDB q= queries case-insensitive

* make TinyDB q= queries case-insensitive

* optimize nocase tests

* optimize nocase tests
2021-10-06 08:39:11 -04:00
Benjamin Webb 361d28c6ac Sensorthings API Provider Patch (#789)
* return correct limits & faster hits query

* Fix hits behavior (and break pytest)

* fix pytest for sensorthings provider

* check before unpacking properties

* add q string

* enclose id in single quotes for entities with non-literal id values

* Undo accidental branch merging

* Undo other part of accident branch merging

* add uri_field to config schema

* Remove uri_field from schema for config file
2021-10-04 11:05:16 -04:00
Tom Kralidis 16648ecb48 add queryable support for CSV and GeoJSON providers (#555) (#786) 2021-09-26 20:25:27 -04: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
Sander Schaminee d2d5ce794a Language structs (dicts) must consist of valid locale keys only (#769) 2021-09-19 00:30:20 +02:00
Tom Kralidis 13926977a2 Merge pull request #774 from webb-ben/sta-patch
small SensorThings provider patches
2021-09-13 18:24:45 -04:00
Tom Kralidis 56411f7327 update to latest OARec metadata model updates 2021-09-13 13:36:53 -04:00
Benjamin Webb 07a23928ff Update test_sensorthings_provider.py 2021-09-09 13:52:21 -04:00
Tom Kralidis 70edc3c0f2 update TinyDB q= support for multiple terms (#765) 2021-08-26 16:30:46 -04:00
Tom Kralidis 6dcd10b10a test for item prev and next links on item queries (#752) (#757) 2021-08-25 06:34:39 -04:00
Tom Kralidis bc97ed480a add geometry to queryables (#755) 2021-08-22 08:28:56 -04:00
Tom Kralidis 9d920901b5 update OAProc execute handling (#754)
* fix OAProc default output to raw

* control outputs list from api machinery

* fix tests
2021-08-18 15:28:55 -04:00
Francesco Bartoli c5942f7a13 Fix time format in cite configuration (#748) 2021-08-02 07:27:48 -04:00
Tom Kralidis 5359789f13 fix OARec test data (#745)
* fix OARec test data

* fix TinyDB bbox handling

* add missing OACov conformance test
2021-07-23 14:50:34 -04:00
Tom Kralidis 914756666c OARec bbox should be two arrays, not three (#744) 2021-07-23 13:39:39 -04:00
Benjamin Webb 3efa041c54 Patch SensorThings API Tests (#737) 2021-07-22 19:11:25 -04:00
Jo cf4517c1c2 - update the script that loads data to ES, to support data encoded with utf8 (#742) 2021-07-22 19:10:38 -04:00
Tom Kralidis 00a08e05ba update OAProc content models (#735) 2021-07-22 15:13:09 +02:00
Francesco Bartoli cdc4f98090 Fix OAProc conformance classes (#736)
* Fix OAProc conformance classes

* Fix conformance test
2021-07-22 09:06:47 -04:00