Giter VIP home page Giter VIP logo

Comments (6)

sjib avatar sjib commented on June 28, 2024

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.

urskaufmann avatar urskaufmann commented on June 28, 2024

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.

m-kuhn avatar m-kuhn commented on June 28, 2024

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.

andreasneumann avatar andreasneumann commented on June 28, 2024

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.

andreasneumann avatar andreasneumann commented on June 28, 2024

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.

andreasneumann avatar andreasneumann commented on June 28, 2024

Already on github - see af5ec93 and some following corrections

from qgep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.