This plugin lets you read and write a pygeoapi configuration file on your local machine. You can deploy this configuration, by uploading it to a server with a pygeoapi instance.
In alternative you can pull and push a configuration directly from/to a running pygeoapi instance. In order to to this:
- The pygeoapi admin API must be enabled on that instance.
- The pygeoapi instance must be unprotected (i.e.: without authentication enabled).
- If you want to see the changes without restarting the service, you must run pygeoapi with hot reload.
It goes without saying that a combination of an unprotected instance and an enabled admin API creates a security risk that is unaceptable for production scenarios. For that reason it should be used for testing purposes only, without exposing the service to the Internet.
Run pygeoapi docker container with hot reload, mounting a local configuration file:
docker run -p 5000:80 -v $(pwd)/example-config.yml:/pygeoapi/local.config.yml geopython/pygeoapi:latest run-with-hot-reloadcopy this folder to your QGIS plugin directory. Something like:
~/.local/share/QGIS/QGIS3/profiles/default/python/plugins
Install dependencies with:
pip install -r requirements
Compile resources with:
pb_tool compile
Modify the user interface by opening pygeoapiconfig_dialog_base.ui in Qt Creator.
Run the following command from the root folder:
python tests\run_tests_locally.py
The YAML files to test against are stored under tests/yaml_samples and names as follows: 'organisation_repository_commit_filename'.
-
Create or modify 'i18n\pygeoapi_config.pro' file to specify the .ui and .py files that contain translatable strings.
-
Run the following command from OSGeo4W Shell to generate .ts files specified in 'pygeoapi_config.pro':
pylupdate5 i18n\pygeoapi_config.pro
- After editing the .ts files, run the following command to compile .dm files for each locale:
lrelease pygeoapi_config_pt.ts
This plugin is a live project and we welcome contributions from the community! If you have suggestions for improvements, found a bug, or want to add new features, feel free to:
- Open an issue to start a discussion
- Submit a pull request with your proposed changes
We appreciate your support in making this plugin better!
This project is released under an MIT License
