Commit Graph

716 Commits

Author SHA1 Message Date
Tom Kralidis 05dfebd7e4 fix list formatting in docs 2021-12-08 21:59:26 -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 252bd88bc2 add invalid value to console error (#825) 2021-11-25 16:21:25 -05:00
Tom Kralidis 250dd9c041 force JSON for Swagger UI rendering callback (#823) 2021-11-24 12:38:01 -05:00
Tom Kralidis ba7d3ba7d2 optimize collections handling (#822) 2021-11-24 07:30:57 -05:00
Tom Kralidis 0ae95cb554 fix OACov subset parsing (#818) 2021-11-22 07:04:58 -05:00
Tom Kralidis 3e3ffee2f1 [OAProc] allow for various result MIME types (#815) 2021-11-21 08:55:18 -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 b242c0a99d refactor EDR plugin query registration (#814)
* refactor EDR plugin query registration

* fix ref
2021-11-17 13:56:24 -05:00
Tom Kralidis 91abdb9f8d update OACov content models (#809) (#813) 2021-11-11 08:35:58 -05:00
Tom Kralidis 8740b23e23 safeguard ES index errors on queryables (#812) 2021-11-10 10:11:01 -05:00
Jo 38cd87285f Added missing file (#811)
* - Added missing parameters on the openapi definition of get an observations tile request

* - changed default background map to osm

* Revert "- changed default background map to osm"

This reverts commit 554c065c6699ad6c0585f5c09ce34e746d5b3dc2.

* - Added example with docker containers, for MongoDB data provider

* - attempts

* - switched to use ne_110m_populated_places_simple.geojson as data source

* - updated README

* - updated README

* - added missing mongo-entrypoint.sh

Co-authored-by: doublebyte1 <info@doublebyte.net>
2021-11-10 06:53:02 -05:00
Tom Kralidis 052917ea3c add debian requirements (#806)
* add debian requirements
2021-10-31 19:49:58 +02:00
Tom Kralidis a9521327a7 use official EDR schemas 2021-10-28 14:01:21 -04:00
Tom Kralidis a91c5d3062 Merge pull request #805 from ShaneMill1/patch-1
Update openapi.py
2021-10-28 13:58:57 -04:00
Shane Mill 84c1f257d9 Update openapi.py
Update openapi.py to use https://raw.githubusercontent.com/opengeospatial/ogcapi-environmental-data-retrieval/master/standard/openapi instead of "candidate-standard"
2021-10-28 09:55:04 -04:00
Tom Kralidis 5c4aed2137 Merge pull request #803 from tomkralidis/base_edr_provider
Base EDR provider
2021-10-27 21:03:26 -04:00
Tom Kralidis a8f656405d implement base EDR provider 2021-10-27 20:37:06 -04:00
Tom Kralidis ba73f5bbe2 use relative inheritence 2021-10-27 20:36:17 -04:00
Tom Kralidis 3825d9a4e0 add gzip to config schema 2021-10-27 20:20:22 -04: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
Angelos Tzotsos 04250002d3 back to dev 2021-10-24 18:13:27 +03:00
Angelos Tzotsos 23991a97fc update release version 2021-10-24 17:33:20 +03:00
Jachym Cepicky e3120795e6 fix 799 display raster bbox for different raster projections (#800) 2021-10-19 07:07:05 -04:00
Jo 722efb0374 Added example for MongoDB data provider (#798)
* - Added missing parameters on the openapi definition of get an observations tile request

* - changed default background map to osm

* Revert "- changed default background map to osm"

This reverts commit 554c065c6699ad6c0585f5c09ce34e746d5b3dc2.

* - Added example with docker containers, for MongoDB data provider

* - attempts

* - switched to use ne_110m_populated_places_simple.geojson as data source

* - updated README

* - updated README

Co-authored-by: doublebyte1 <info@doublebyte.net>
2021-10-18 08:21:56 -04:00
Astrid Emde aa416f984f translation to german de (#797) 2021-10-15 06:56:37 -04:00
Jo 90e43adf2b Added elasticsearch configuration, to make it work with single node (#794)
* - Added missing parameters on the openapi definition of get an observations tile request

* - changed default background map to osm

* Revert "- changed default background map to osm"

This reverts commit 554c065c6699ad6c0585f5c09ce34e746d5b3dc2.

* - added discovery.type to elasticsearch configuration, to prevent failed bootstrap checks

Co-authored-by: doublebyte1 <info@doublebyte.net>
2021-10-11 20:22:05 -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 f091d971b1 fix configuration JSON schema (#788) 2021-10-02 08:14:03 -04:00
Tom Kralidis 16648ecb48 add queryable support for CSV and GeoJSON providers (#555) (#786) 2021-09-26 20:25:27 -04:00
Tom Kralidis 44624e8e87 docs: make CSV table more readable (#785) 2021-09-26 07:10:09 -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
Tom Kralidis 7c9376e8c7 fix flake8 2021-09-25 06:47:46 -04:00
Tom Kralidis c8951d4e02 Merge branch 'MetServiceDev-782_subsetting_using_bbox_uses_wrong_keys' 2021-09-25 06:46:37 -04:00
Tom Kralidis 93c5e6fed0 Merge branch '782_subsetting_using_bbox_uses_wrong_keys' of https://github.com/MetServiceDev/pygeoapi into MetServiceDev-782_subsetting_using_bbox_uses_wrong_keys 2021-09-25 06:46:26 -04:00
Tom Kralidis 26ae0bfe46 Update pygeoapi-config.yml 2021-09-21 07:15:37 -04:00
Tom Kralidis bc57f8f75a Update SECURITY.md 2021-09-21 06:34:29 -04:00
Michael Lane b36fc74915 782: Replaced the literal strings 'x_axis_label' and 'y_axis_label' in the query_params submitted to xarray with the values for the axis labels stored in self._coverage_properties. 2021-09-20 01:11:57 +00:00
Tom Kralidis 2cb68277f9 fix flake8 and add MIME types to lambda setup (#781)
* fix flake8 and add MIME types to lambda setup

* add fixes per #660)
2021-09-19 19:22:02 -04:00
Chris Barrett db3d4f9502 Support for building pygeoapi as a lambda container and deploying to AWS Lambda (#2) (#709) 2021-09-19 19:10:17 -04:00
Tom Kralidis 9b8d86e914 Merge pull request #780 from tomkralidis/html-safe-attribution
mark HTML as safe in templates
2021-09-19 07:24:14 -04:00
Tom Kralidis ad6e3935f7 mark HTML as safe in templates 2021-09-19 07:18:57 -04:00
Tom Kralidis 9b49ddb144 Merge pull request #779 from GeoSander/fix-769
Language structs (dicts) must consist of valid locale keys only (#769)
2021-09-19 07:13:20 -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 a67d0d4c2d Merge pull request #773 from eurodatacube/fix-jobs-link
Fixed an issue with navigation in job templates
2021-09-13 18:25:06 -04: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 3a1a28d260 Merge pull request #777 from tomkralidis/issue-775
fix OpenAPI JSON file rendering (#775)
2021-09-13 14:31:12 -04:00