* bbox query parameter support for EDR cube queries
As per Requirement A.61 C, D and E, as well as A.7 in the EDR standard.
* bbox queries support z-axis dimension
* xarray-edr provider cube query support, edr cube unit tests
---------
Co-authored-by: Peter Garnæs <pga@dmi.dk>
* Render template if specified in config and provide example config
Update linked_data.py
Merge branch 'geopython:master' into jsonld
Rended from json-ld output
Render jinja2 json-ld template from json-ld output instead of json output
Merge branch 'geopython:master' into jsonld
Add documentation
- Add documentation
- Add test to workflow
Update pygeoapi-test-config.yml
Update test_api.py
Update api.py
Update linked_data.py
Move template declaration in configuration
Update docs
Update configuration.rst
Update configuration.rst
* Updates per requested changes
* Fix spelling
* Fix json-ld template pathing
* Remove root path for the templating
* Move json-ld template from api.py
- Move single item json-ld templating to inside geojson2jsonld
- Reformat json-ld configuration for context and item_template to children of json-ld block
- Update docs and example configurations
* Fix ref
* Use FileSystemLoader to control template search path
search for templates is in order of `template_paths` list
* s/json-ld/linked-data/ig
rename json-ld to more generic name
* feat(OGRProvider): allow to use 'geom_field' in the config for OGR provider
* docs: show an example of using OGR for publishing data from a PostGIS database
* fix: does not check for empty geometry in this PR
* docs: add back ESRIJSON source_type
* fix(geom2schemageo): use only x,y dimensions when rendering GeoShape
Ignore possible third dimension when unpacking the coordinates of shapely
geometrical object in function 'geom2schemageo'. This fixes the ValueError
thrown when requesting features in JSON-LD format with 3D geometries.
* fixing unpacking of multipoint coordinates
As for the 'layer' attribute, the 'id_field' should be specified in the
configuration file for the OGRProvider. The 'get' method of a OGRProvider
instance (e.g. when requesting a single feature) needs the feature ID when
setting an attribute filter on the layer. If the 'id_field' attribute is
omitted in the configuration file, the error thrown is more explicit.
* 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>
* 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>