pyramid_oereb
is an open-source implementation of the server side part for the swiss "Cadastre of
Public-law Restrictions on landownership" (PLR-cadastre).
It is written in Python and designed as a plugin for the Pyramid Web Framework. This allows pyramid_oereb
to be
included in any Pyramid web application.
Please refer to the documentation for detailed information and instructions for installation and configuration.
If you are interested in contributing or extending the project, take a look at the contribution page.
Following packages are required: python3-venv
postgresql-client
libpq-dev
Run:
git clone [email protected]:openoereb/pyramid_oereb.git
cd pyramid_oereb
make serve
JSON reduced extract is accessible at: http://localhost:6543/oereb/extract/reduced/json/CH113928077734.
When running in to issues installing libpq-dev
:
The following packages have unmet dependencies:
libpq-dev : Depends: libpq5 (= 10.12-0ubuntu0.18.04.1) but 12.3-1.pgdg18.04+1 is to be installed
Try to install a specific version (adapt the version to your requirement):
sudo apt install libpq5=10.12-0ubuntu0.18.04.1
To check your code, run make checks. It will run style checks and tests. It's also possible to run sub-target independently:
- make checks-style to run only style-related checks (linting, attributes).
- make tests to run tests. Python 3.7 is used by default. But you can run tests with another version by running: PYTHON_TEST_VERSION=python3.x make tests. You can also set this variable in the Makefile.
After running tests, the coverage is available in the folder coverage_report.