Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin-guide Specify where to enter the commands and what to replace #162

Open
TriformMoritz opened this issue Sep 19, 2021 · 1 comment
Open

Comments

@TriformMoritz
Copy link
Contributor

Example: I need to add an extra field:
Description in chapter 3.42 - Adding fields

The views can be re-generated any time using the following command:
./view/create_views.py --pg_service pg_qgep --srid 2056

I need to know;

  • Where to enter the command (PG admin SQL? QGIS python line? osgeo4W shell? Python shell? On the QGIS computer? On the postgres computer?)
  • What to replace ( replace pg_qgpep with your database? replace view with the custon field?

This is an issue for me in the whole documentation.

@sjib
Copy link
Contributor

sjib commented Sep 20, 2021

Chapter 3.42 - Adding fields
This is a Python command that runs a pyhton library (create_views.py) so it needs to be run either in the Python shell or in the command line of your QGIS computer:
./view/create_views.py --pg_service pg_qgep --srid 2056

The flag --pg_service calls the pg_service definition. So choose the pg_service definition of the database you want to run the script on.

I think the above notation works on Linux. I tried to apply it on Windows and get the following syntax error - maybe someone else has a hint for that?

run create_views py python console

I also guess that is needs a valid PUM installation on your system (see https://qgep.github.io/docs/admin-guide/db-update-pum/index.html#requirements)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants