Skip to content

Commit

Permalink
Merge pull request #539 from cymed/add-customisation-docs
Browse files Browse the repository at this point in the history
add label and symbology custiomisation guide to docs
  • Loading branch information
cymed authored Jan 24, 2025
2 parents b010cc5 + 42db482 commit c96d180
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/en/admin-guide/db-label-customisation/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.. _labelcustomisation:

Customisation of labeling and symbology behaviour
==========

Relevant fields
-----

The symbology and labeling behaviour of ``tww_app.vw_tww_wastewater_structure`` depends on the following fields:

* ``_channel_function_hierarchic``
* ``_channel_usage_current``

These two values are stored in ``tww_od.wastewater_node`` and updated by triggers. These triggers are defined so that the database sysadmin can influence how the labelling is executed.

Labelling
-----
Per default, we only label inflows from primary reaches, but all outflows regardless of hierarchy.
If you want to include secondary inflows in the labels, this can be achieved by setting the field ``tww_vl.channel_function_hierarchic.tww_include_in_labels`` to ``true`` for all entries.


Symbology
-----
The relevant fields are taken from the primary wastewater node of a wastewater structure. The corresponding channel values are defined by triggers that use the following priorisation scheme

#. incoming channels where ``tww_vl.channel_usage_current.tww_symbology_inflow_prio`` are ``true``
#. outgoing channels by ``tww_vl.channel_function_hierarchic.tww_symbology_order``
#. incoming channels by ``tww_vl.channel_function_hierarchic.tww_symbology_order``
#. outgoing channels by ``tww_vl.channel_usage_current.tww_symbology_order``
#. incoming channels by ``tww_vl.channel_usage_current.tww_symbology_order``

By altering the corresponding field in ``tww_vl``, the trigger logic's behaviour can be influenced.
1 change: 1 addition & 0 deletions docs/en/admin-guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This represents a guide on how to administrate the database, install a Virtual m
:maxdepth: 2

datamodel
db-label-customization/index
pgadmin/index
security/index
interlis-io/index
Expand Down

0 comments on commit c96d180

Please sign in to comment.