Commit Graph

919 Commits

Author SHA1 Message Date
Angelos Tzotsos 39ecf74a42 back to dev 2023-02-03 15:02:26 +02:00
Angelos Tzotsos 7b925f1bbb update release version 2023-02-03 14:36:50 +02:00
Angelos Tzotsos 96c23c7fbe Sort requirements 2023-02-03 14:33:35 +02:00
Angelos Tzotsos 8ff36f4373 Pin SQLAlchemy to previous release until pygeofilter fixed upstream 2023-02-03 14:33:35 +02:00
Tom Kralidis f3151b0231 update CSV provider property typing (#1122)
* update CSV provider property typing

* fix test

* fix ref

* fix ref

* fix ref

* fix truthy evaluations
2023-01-31 06:26:31 -05:00
Peter Garnæs ff9ea1b6fc Edr Providers can raise Request Entity Too Large HTTP status (#1119)
* Edr Providers can raise Request Entity Too Large HTTP status

* Rename and move entity too large exception to provider base module

* Get request too large exception message from base exception message

* Rename request to large exception

---------

Co-authored-by: Peter Garnæs <pga@dmi.dk>
2023-01-29 12:18:32 -05:00
Tom Kralidis d7d5fa6dc1 Merge pull request #1120 from tomkralidis/issue-1117
add links to process list endpoint (#1117)
2023-01-28 16:58:10 -05:00
Tom Kralidis 0806757a01 add links to process list endpoint (#1117) 2023-01-28 16:49:15 -05:00
Tom Kralidis 94dc76bf57 update GeoJSON provider property typing (#1116) 2023-01-25 17:49:29 +01:00
Tom Kralidis 754bbffb94 Merge pull request #1113 from geopython/items-id-path
support paths in item IDs
2023-01-23 10:30:56 -05:00
Francesco Bartoli cefd976a92 Fix module name (#1114) 2023-01-23 10:27:46 -05:00
Tom Kralidis f26582e4ce add examples in docs 2023-01-23 09:28:05 -05:00
Tom Kralidis 8686c9e265 support paths in item IDs 2023-01-23 07:45:49 -05:00
Just van den Broecke c436baf739 #1110 try fix hanging Docker build GH Workflow - downgrade GH build env 2023-01-20 14:30:24 +01:00
Just van den Broecke 79688e9917 #1110 try fix hanging Docker build GH Workflow - split RUNs 2023-01-20 11:35:39 +01:00
Just van den Broecke 0e22b4fea5 #1110 - disable build for test and upgrade action versions (#1112) 2023-01-19 09:42:47 -05:00
Tom Kralidis 7cde469bd9 fix string formatting in item HTML template (#1107) (#1109) 2023-01-19 08:26:49 +01:00
Massimo Di Stefano 2d4d8e6646 docker: upgrade ubuntu version (#1093)
* docker: upgrade ubuntu version

Upgrade rhe ubuntu version used in the main Dockerfile to latest stable version `20.04`

* Update Dockerfile

amended ubuntu version 20 -> 22

but then the following error:

```
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
gpg: error running '/usr/bin/gpg-agent': probably not installed
gpg: failed to start agent '/usr/bin/gpg-agent': Configuration error
gpg: can't connect to the agent: Configuration error
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuthandler.py", line 423, in add_key
PPA publishes dbgsym, you may need to include 'main/debug' component
Repository: 'deb https://ppa.launchpadcontent.net/ubuntugis/ubuntugis-unstable/ubuntu/ jammy main'
Description:
Unstable releases of Ubuntu GIS packages. These releases are more bleeding edge and while generally they should work well, they dont receive the same amount of quality assurance as our stable releases do.
More info: https://launchpad.net/~ubuntugis/+archive/ubuntu/ubuntugis-unstable
Adding repository.
Adding deb entry to /etc/apt/sources.list.d/ubuntugis-ubuntu-ubuntugis-unstable-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/ubuntugis-ubuntu-ubuntugis-unstable-jammy.list
Adding key to /etc/apt/trusted.gpg.d/ubuntugis-ubuntu-ubuntugis-unstable.gpg with fingerprint 6B827C12C2D425E227EDCA75089EBE08314DF160
    subprocess.run(cmd.split(), check=True, input=keys)
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['gpg', '-q', '--no-options', '--no-default-keyring', '--batch', '--keyring', '/etc/apt/trusted.gpg.d/ubuntugis-ubuntu-ubuntugis-unstable.gpg', '--homedir', '/tmp/tmpjlr98185', '--import']' returned non-zero exit status 2.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 364, in <module>
    sys.exit(0 if addaptrepo.main() else 1)
  File "/usr/bin/add-apt-repository", line 357, in main
    shortcut.add()
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuthandler.py", line 222, in add
    self.add_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuthandler.py", line 425, in add_key
    raise ShortcutException(e)
softwareproperties.shortcuthandler.ShortcutException: Command '['gpg', '-q', '--no-options', '--no-default-keyring', '--batch', '--keyring', '/etc/apt/trusted.gpg.d/ubuntugis-ubuntu-ubuntugis-unstable.gpg', '--homedir', '/tmp/tmpjlr98185', '--import']' returned non-zero exit status 2.
````

Removing the ubuntugis PPA  build without error - is ubuntugis a requirements? probably Jammy has up-to-date packages for pygeoapi dependencies

* Update Dockerfile

removing ubuntugis PPA

* Update Dockerfile

adding  `python3-pytest` and `python3-pyld`  dependencies

* Update Dockerfile

* Update Dockerfile

* fixing docker environment with suggested changes

* replace ubuntu version with codename

* Update .dockerignore

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* Update entrypoint.sh

skip the SensorThings and other tests that require a local server

Co-authored-by: Just van den Broecke <just@justobjects.nl>
2023-01-18 15:04:36 +01:00
Benjamin Webb a1a70a4139 Return empty field set (#1106)
- Return empty field set instead of throwing an error.
- Update license year
2023-01-17 23:14:28 -05:00
Tom Kralidis c8d55ecef8 autodetect SQLiteGPKG geometry columns, normalize fields into JSON Schema types (#1088) (#1103) 2023-01-14 08:04:13 -05:00
Tom Kralidis 3bc40624b7 add warning when flask_cors is not enabled (#1083) (#1097)
* add warning when flask_cors is not enabled (#1083)

* fix
2023-01-12 12:10:12 -05:00
Angelos Tzotsos 126da2cc41 Reverting SensorThings test fix 2023-01-12 18:22:49 +02:00
Tom Kralidis 808fe82edf add OAMaps datetime to OpenAPI (#1095) (#1096) 2023-01-12 18:11:23 +02:00
Kevin Ngai daca503b43 Fix calls of render_j2_template() to pass in request.locale as the param (not SYSTEM_LOCALE) in order to apply proper translations for /jobs/**/*.html pages and /collection/tiles/index.html templates (#1094)
Co-authored-by: Kevin Ngai <afswken@geomet-dev-03.cmc.ec.gc.ca>
2023-01-12 08:05:14 +01:00
Angelos Tzotsos 2e1f181461 Fix spatialite version 2023-01-10 12:35:10 +02:00
Angelos Tzotsos 9c9111b096 Updating SensorThing test 2023-01-10 12:35:10 +02:00
Angelos Tzotsos 511f0ef09f Update debian control file 2023-01-07 15:19:43 +02:00
Tom Kralidis 30e1adeb79 Happy New Year! 🥳 2023-01-01 12:57:56 -05:00
Tom Kralidis 82c432794e various updates (#1082) 2022-12-27 07:26:21 -05:00
Francesco Bartoli 59dae2be8e Add normal function to generate openapi document (#1080) 2022-12-27 07:04:43 -05:00
Francesco Bartoli c209022a46 Add provider properties configuration (#1079) 2022-12-27 07:03:54 -05:00
Nick Forbes-Smith be5da13016 Fix workflow_dispatch event for Publish Docker image workflow (#1077) 2022-12-23 11:14:48 -05:00
Krishna Lodha 9202bce5c1 Fixed issue #1075 (#1076)
* added requests in requirements.txt

* added requests in requirements.txt
2022-12-22 09:11:33 -05:00
Nick Forbes-Smith 694fa7a942 Fix f-string for OGR provider query bbox (#1069) 2022-12-14 14:07:21 -05:00
Angelos Tzotsos 74509452f9 Stay with Shapely 1.x for a while (#1072) 2022-12-14 14:04:02 -05:00
Francesco Frassinelli 819ec3fd82 Show actual default value for limit (#1071) 2022-12-14 10:55:09 -05:00
Francesco Bartoli 172c12a0e5 Replace http status numbers with standard enumerations (#1068)
Replace http status numbers with standard enumerations
2022-12-10 00:54:43 -05:00
Francesco Bartoli 7564d7b398 Fixing various problems with the starlette interface (#1067)
* Fix uvicorn start with reload

* Handle uvicorn log level from cli

* Fix starlette tiles routing

* Fix vector tiles rendering
2022-12-09 10:08:57 -05:00
Benjamin Webb 29970e29c3 Use awalsh128/cache-apt-pkgs-action action (#1066)
Install libsqlite3-mod-spatialite for Github CI

Update sqlite tests
2022-12-08 16:45:36 -05:00
Benjamin Webb fffed87f2d Use Sensorthings action for API tests (#1055) 2022-12-08 16:33:18 -05:00
Tom Kralidis f9fb2c6005 move to f-strings for string interpolation (#1064)
* update from format() to f-strings

* fix

* fix

* fix ref

* update headers
2022-12-08 16:09:19 -05:00
Francesco Frassinelli 64e63ac4c0 Fix typo in plugins.rst example (#1063) 2022-12-07 16:51:44 -05:00
Aontnio Cereicllo 0be1ce54af Updates to Tileset Metadata endpoint (#1051)
* Adding metadata to matrix endpoint

* Adding Tileset metadata with mandatory fields

* Making metadata.json not mandatory, except when it is

* Adding pydantic models

Using models in place of json text

* Adding metadata to matrix endpoint

* Adding Tileset metadata with mandatory fields

* Making metadata.json not mandatory, except when it is

* Adding pydantic models

Using models in place of json text

* Fix tilesets template

Co-authored-by: Francesco Bartoli <francesco.bartoli@geobeyond.it>
2022-12-05 11:33:07 +01:00
Jo 111cfa5a98 - update docs with example of configuration for rendering pg_tileserv vector tiles (#1058) 2022-12-04 07:06:22 -05:00
Jo c2fe864a34 - removing deadcode (#1057) 2022-12-04 06:46:01 -05:00
Tom Kralidis c3b0e7868e minor updates to #1040 (#1054)
* minor updates to #1040
* s/crs/bbox-crs
* write status to stdout if --output-file is used
2022-12-02 09:58:45 +02:00
Tom Kralidis ccb94e132d Update introduction.rst 2022-12-01 09:16:45 -05:00
Jo 85a4984bbe Add Support for a generic url template, for publishing vector tiles as OGC API Tiles (#1050)
* - Added support to read from a generic url template as vector tile backend.

* - Add support for not rendering the tileset metadata

* - added support for z/y/x vector tile layers

* - fixed formatting issues

* - refactored code to use get_layer function, everywhere we need to parse username
- added a couple of debug statements, to make sure we are getting the layer name
correctly
- added an error for url templates that follow a schema, which is not supported yet

* - Added documentation for tiles provider, to show how to read a generic url

* - fixed formatting issues

* - added example of ES vector tiles in the docker-config of elasticsearch

Co-authored-by: doublebyte1 <info@doublebyte.net>
2022-12-01 08:34:16 -05:00
Tom Kralidis 1aa80368f7 fix temporal handling 2022-12-01 14:39:54 +02:00
Tom Kralidis 3ebaaaa27b remove sizing 2022-12-01 14:39:54 +02:00