Comments (6)
This is a good idea with the trigger. But it is not the goal that the user inputs this field else we can have conflicts in data and that this is exported in the INTERLIS VSA-DSS. VSA-DSS-Mini has a new Attribut Knoten.Nutzungsart_Ist to export usage_current to make checks about Primary and secondary channels (PAA und SAA Kanäle) and needed mandatory attributes. These rules could be implemented later also on the database after publication of the new release of Wegleitung GEP-Daten (in the next 3 months)
from qgep.
Good idea with trigger. But consider: the "usage_current" is not from the incoming, but from the outgoing "od_channel"s. If there are two or more outgoing channels, you must have rules, which of the channels is decisive. Ist normally the one with the „greater“ Funktion_Hierarchisch. If they are even, then there is the following „ranking“: schmutz-, misch-, entl.misch-, industrie-, regen-, rein-, …
from qgep.
How about another approach:
Add a new view (if we run into performance troubles, we can make it materialized) and create new views that require this attribute from manhole based on the intermediate view? This keeps us closer to the upstream datamodel and solves the same problem without redundancy.
from qgep.
Will first create SQL function to derive usage_current from outgoing reaches. We will first try with a view. If performance is an issue we may try a materialized view. If it is still too bad we can try to add an additional field and add insert/update triggers.
from qgep.
We added three aditional columns to od_manhole - all extra columns are prefixed with and underscore (_) to distinguish them from the standard columns of the data model:
- _usage_current
- _function_hierarchic
- _orientation
We still need triggers on the reaches to update connected manholes.
from qgep.
Already on github - see af5ec93 and some following corrections
from qgep.
Related Issues (20)
- Postgis 3.3 needs QGEP datamodel adaptations to work
- TX : Translation of some but not all value_en to value_xx HOT 2
- Bring colors and style to forms
- Postgres 15 needs QGEP datamodel adaptations to work HOT 3
- Handling of "clear_width" HOT 3
- Timing of "Apply default value on update" HOT 2
- Interlisexport: TextVAli is Bottom, not Top HOT 3
- GitHub 2FA fails and you might loose all access to account and projects here. HOT 5
- Fieldcalculator on gpkg-field blocks qgep-project HOT 2
- vl_ values are not prefixed as such in database but still referenced as vl_ values in the project HOT 2
- Performance on QGEP is not monitored and scalability is not accessed HOT 1
- SWMM export of selected features only works in english
- Gestion des droits Postgres HOT 3
- Missing dependency sqlalchemy HOT 1
- Error whem deleting special structure HOT 2
- Lost relations in copy of the project HOT 2
- INTERLIS export fails using latest plugin HOT 8
- Testing qgep plugin 1.6.2 - Project file missing layers HOT 5
- 1.61 Update with datamodeltool HOT 3
- 1.6.2 Export SIA405 with labels HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qgep.