Testing Datamodel and plugin import #72
Replies: 15 comments 16 replies
This comment has been hidden.
This comment has been hidden.
-
length profil works!!! |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Project file has a title (TEKSI Wastewater and General Wastewater Management Plan (GEP)) |
Beta Was this translation helpful? Give feedback.
-
Creating a child-records if the parent-record is not safed gives a "red" error with a not very understandable errormessage (CRITICAL Layer vw_access_aid : PostGIS-Fehler beim Attributhinzufügen: ERROR: insert or update on table "structure_part" violates foreign key constraint …). Is there a possibility to give a better message or even better to tell the user to save first. Interesting: when inserting a new child-record maintenance event, it works also with this similar red error (I know, it's not a real child because there is a re_table between). |
Beta Was this translation helpful? Give feedback.
-
Action Digitize Drainage Channel: there is a blue hint in the map who tells me what to do. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
@sjib @cymed @urskaufmann I just uploaded the newest plugin in the top post. This should fix:
Still open (at least on interlis front): |
Beta Was this translation helpful? Give feedback.
-
datamodel dump updated to 8e0f8f5 |
Beta Was this translation helpful? Give feedback.
-
Datamodel dump and plugin updated to df6ee39 05.03.2024 |
Beta Was this translation helpful? Give feedback.
-
New release candidate published: https://github.com/teksi/wastewater/releases/tag/2024.0.rc2 |
Beta Was this translation helpful? Give feedback.
-
Hello, Problems and suggestions:
So the steps should only be:
So once postgres is setup, the rest is easy and can be done by anyone inexperienced! I personnaly had a problem installing postgresql 12 and 15 alongside on a windows 10 computer used as a server.
Workaround was using pgadmin (newest version) from my local computer. Hope this comment is in the right spot. Please tell me if I have to move it. Moritz |
Beta Was this translation helpful? Give feedback.
-
New pre-release added https://github.com/teksi/wastewater/releases/tag/2024.0.1 |
Beta Was this translation helpful? Give feedback.
-
Prerequisites
Postgresql+postgis has to be installed either locally or on your server. Access configuration is not described here but can be found on the postgresql documentation.
QGIS has to be installed in a minimal 3.34.8 LTR Version, preferably with the osgeo4w installer.
Python modules psychopg2, sqlalchemy and geoalchemy2 have to be installed for INTERLIS IMPORT and export. pum and pirogue will be required for upgrades and database initialisations in the future.
Setup
0. Create the roles on the database cluster :
https://github.com/teksi/wastewater/blob/main/datamodel/12_0_roles.sql
1. Install TWW data model using a dump
Download from the latest Release https://github.com/teksi/wastewater/releases/tag/2024.0.0
Or, if you have access, take the last build from the main branch from https://github.com/teksi/wastewater/actions/workflows/datamodel-create-dumps.yml
Use the 'Restore' function on your postgres database installation after creating a new database first and select
tww_dev_structure_and_demo_data.backup
(there is not demo data in there currently)On Windows:
2. Install plugin from zip
teksi_wastewater.0.0.0.zip
You need a Java Runtime Environment to run ili2pg
If you do not want to compromise your existing QGIS installation create a new User profile first in TEKSI and install the plugin version there.
3. Download the code (only if you need separately)
https://github.com/teksi/wastewater/archive/refs/tags/2024.0.0.zip
4. Open the project in QGIS
Use the downloaded projet from the Release or
Download current version from https://github.com/teksi/wastewater/blob/main/project/teksi_wastewater.qgs
Click the button "Download raw file" and save locally
Or directly https://raw.githubusercontent.com/teksi/wastewater/main/project/teksi_wastewater.qgs
Create a pg configuration entry with the name: pg_tww to match the project files definition
5. Import from INTERLIS
Open the project file
Go to the plugin settings and change to Admin Mode - else INTERLIS Import / Export buttons will not be displayed.
You can also Add Developers Mode and save the logs to have more data available for debugging.
Save settings.
Save project file - it is suggested to name it with your QGIS version to distinguish from the provided version - and restart QGIS.
Now the INTERLIS Import / Export buttons should be visible.
Using files in this order (files can be found in the code source)
6. Refresh network views
Should now be included in the workflow with the latest plugin version.
7. Run Update Main Cover query manually
Run the update main cover query manually so symbols on layer vw_tww_wastewater_structure display correctly and objects can be selected - see #75
Should now be included in the workflow with the latest plugin version!
Known issues
LAST EDIT ponceta 19.07.2024
Beta Was this translation helpful? Give feedback.
All reactions