Only this pageAll pages
Powered by GitBook
1 of 40

Change log Giswater

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

3.6.001

INDEX

  • INVENTORY

    • 3.6.001

    • New variable edit_link_check_arcdnom to check if new link is connected to an arc with smaller diameter than defined value (WS)

    • New process to check existing connecs related to arcs with diameter bigger than defined value (WS)

    • New process to check existing connecs with more than 1 link on service (WS and UD)

    • Add region and province tables and add region_id and province_id fields to municipality and inventory tables

    • Add new fields on inventory tables for UD

    • New functionality: get address and postnumber automatically when inserting node and connec

    • Add last update and lastupdate_user to v_edit_tables

    • Add staticpressure update on trg_edit_connec (harmonize with node)

  • OM

    • New function: gw_fct_mincut_show_current to show mincuts that are currently being executed in a field

  • EPA

    • Full refactor of inp database objects

    • New button: Toggle EPA World. Toggle an "EPA Point of View" to show the network as it would be exported to EPA software

    • Added tab EPA in info

    • Create new object ws-virtualpump and remove import inppump and import inpvalves

    • New function 'Set optimum outlet' and refactor of subcatchment views for ud projects

    • Refactor of subcatchment views for UD projects

    • Add new actions in info to manage flow regulators & demands for EPA objects

  • MASTER

    • Do not allow to insert features with different expl_id than the psector

  • ADMIN/SYSTEM

    • Drop obsolete table 'selector plan_psector'

    • Make multi-transactional some stored procedures

INVENTORY

Info is now fully configurable via database (widgets from all tabs, actions, tableviews, etc.)

Many features shown by the info button were customizable so far, but not all of them. Now, the data shown by the Info Button can be fully configurable via database. The user can add, remove, hide or show the features that the Info Button shows, as well as modifying the upper actions toolbar. The tables from the database that enable this customization are the following:

  • config_form_fields: this table enables the user to show specifically which fields of a specific table are shown in each tab. Many features of this table were already available on previous versions of Giswater.

  • config_form_list: this table enables the user to display specific data of a table by writing a SQL query. On column listname, the user must specify the name of the table from which data is going to be extracted. It is mandatory to use an existing table on the database. In column query_text, the user may write the SQL statement needed to extract the data of choice from the table specified in column listname. Additionally, there is a column called listtype which only accepts 2 types of names: "tab" or "attributeTable" according to the way the table is displayed.

  • config_form_tableview: this table enables the user to set properties to specific tables. These can be their visibility, width, alias and style of its fields. There are 2 primary keys on columns objectname (name of the table) and columname (name of the column), whose values are mandatory before any insert of a record on that table. As for the style, it is not possible to add any different style but the following json string: {"stretch":true}.

  • config_form_tabs: this table enables the configuration for each tab into the Info layout, as well as its upper toolbar. The user can configure which table's information wants to see by editing column formname and which tab is going to show that information by editing column tabname. Additionally, there is a column called tabactions which uses a json string to enable or disable the button actions on the upper toolbar of the Info layout. There is also a column called sys_role to specify which roles are available to see each tab and button from the upper toolbar. To make it more customizable, there are 2 columns (label and tooltip) to set the visible name of the tab and its tooltip when the user interacts with it.

New variable edit_link_check_arcdnom to check if new link is connected to an arc with smaller diameter than defined value (WS)

A new check is done when inserting links. This check occurs when the user tries to insert a link and it consists of checking if the new inserted link is connected to an arc with smaller diameter than the connected link. The user can configure whether or not to check this issue via table config_param_system with the parameter edit_link_check_arcdnom. The values for this parameter are stored in a json string, which contains 2 variables: status (true or false if activated or not respectively) and diameter of the link with which the arc diameter is going to be compared. Once activated, the issue will be checked every time the user inserts a new link.

New process to check existing connecs related to arcs with diameter bigger than defined value (WS)

A new check is done along the Check Project process. While the previous process checked if the inserted link had a smaller diameter than the arc to which was connected, this process checks if a link with a diameter of choice is bigger than the arc diameter to which is connected. This issue is checked every time the check process is executed and the results figure out in the output of the Check Project as WARNING-488.

New process to check existing connecs with more than 1 link on service (WS and UD)

A new check is done along the Check Project process. This consists of checking if connecs (and also gullies for UD) have more than 1 associated link on service. This issue figures out in the output of the Check Project as WARNING-480. This is not configurable via database unlike the previous cases.

Add region and province tables and add region_id and province_id fields to municipality and inventory tables

2 new tables have been created: ext_province and ext_region. The second one, has a field named province_id which acts as foreign key of table ext_province. Additionally, the fields province_id and region_id have been added to the table ext_municipality and inventory tables (v_edit_tables) where both fields are foreign keys from their respective tables.

Regarding to the inventory tables, these 2 new fields figure out as the name of the province and the region, unlike the table ext_municipality where these 2 fields are the id of the region and province respectively.

Add new fields on inventory tables for UD

The new fields have been added to the next tables:

  • For tables node, arc, connec, gully, new fields have been added under the name of adate and adescript. These fields can be filled with additional date and additional description respectively.

  • Also for table gully, 2 new fields have been added: siphon_type and odorflap. The field siphon_type can be filled with the type of siphon and the field odourflap can filled with TRUE of FALSE if there is a preventive method for odour presence for a specific gully.

  • For tables man_manhole, man_conduit and man_chamber, the new field is called bottom_mat. The field is optional to fill and it can be used for giving information about the bottom material of the element.

  • Also for table man_chamber, a new field has been added: slope. It gives information about the slope in percentage. It is calculated with the difference between the entry level and the exit level and divided by the length.

  • For table cat_arc, the new field is called visitability which shows if the element can be accessible for a person to inspect it in situ.

New functionality: get address and postnumber automatically when inserting node and connec

This functionality works automatically when inserting nodes or connecs. Therefore, it requires the table ext_address to be filled with data. This feature can be configured via basic config of Giswater or via config_param_system with the parameter edit_auto_streetvalues. Its configuration is stored in a json string with 3 variables inside: status (true or false if the functionality is activated or not respectively), field ("postnumber" or "postcomplement" if the gate number is stored in one field or the other from the v_edit_tables) and buffer (the distance buffer where the function looks for the closest gate number for that node or connec).

As for the field where the gate number is stored, the user may consider using the postnumber when the gate number is strictly an integer. However, the field postcomplement allows the user to store the gate number as a text string, which is useful in those cases when the gate number contains letters or symbols.

Add last update and lastupdate_user to v_edit_tables

2 new fields have been added to v_edit_tables. These are lastupdate and lastupdate_user and they give information about the last time stamp where the table has been updated and the user who updated the table respectively. The lastupdate_user is the user that has logged in the database connection when the credentials to connect to it have been asked to the user.

Add staticpressure update on trg_edit_connec (harmonize with node)

The field staticpressure from table v_edit_connec is being updated like it happens in table v_edit_node. It is mandatory to create presszones in order to compare the heading pressure with each node's pressure.

OM

New function: gw_fct_mincut_show_current to show mincuts that are currently being executed in a field

This function shows the mincuts that are being executed in the selected exploitation. It can be found in Giswater Toolbox by the name of Show current mincuts.

EPA

Full refactor of inp database objects

Several improvements related to EPA have been done in this release. These are going to be explained in detail throughout this section and these are listed below:

  • Some inp tables (most of them, tables related to quality) have been merged into features from other inp tables.

  • New button to switch to EPA point of view in order to see the network as it would be exported to EPA.

  • New tab EPA in Info Layout with a dscenario manager for EPA objects and also a set of actions to manage flow regulators and demands for EPA objects.

New button: Toggle EPA World. Toggle an "EPA Point of View" to show the network as it would be exported to EPA software

A new button has been added for both WS and UD under the name of EPA World, which is located next to the 'Load Giswater Layer' button in the QGIS Layers Panel.

By clicking on it, a warning message is shown and the visible network elements are filtered in order to show the network as it would be exported to EPA Software. Therefore, the elements with an epa_type of 'UNDEFINED' are not shown because they are not going to be exported, as well as Giswater own elements like Connecs or Links.

This may help the user to visually check the network in an easy-quick way before exporting it to EPA Software.

Added tab EPA in info

A new tab called EPA has been added to the elements form. The tab EPA shows most of the properties that EPA Software would show for each element. The data shown in this tab is stored in the table view for each EPA element, whose prefix is ve_epa_ (i. e. ve_epa_pump, ve_epa_shortpipe, ...). Having this, there is no need to load on QGIS canvas any layer from EPA World to see its features. Additionally, there are 2 sections inside tab EPA: Data and Dscenario

In section 'Data', the user can see all the element's feature regarding to EPA. The user can customize the different features appearing in this section in table config_form_fields filtering by columns formname (name of the table view) and tabname (tab_epa). To add a new feature to be shown in tab EPA, the user must add a new row into table config_form_fields and specify the data in columns formname (name of the element table view), form_type (form_feature), tabname (tab_epa), columnname (name of the column of the specified table view the user wants to be shown) and label (a descriptive text placed next to the values shown in the form element). In addition, user can hide the features of tab EPA also in table config_form_fields by setting to TRUE the column hidden.

Additionally, tab EPA has another section called 'Dscenarios'. This is a demand scenario manager where the user can manage several scenarios for that element without needing to use the Dscenario Manager Button. This enhancement makes it easier for the user to manage scenarios for a specific element.

Create new object ws-virtualpump and remove import inppump and import inpvalves

A new epa type object has been defined in table sys_feature_epa_type from WS. This is called VIRTUALPUMP and it acts as an arc. When inserting any arc, the user can specify its epa_type as virtualpump.

Regarding to the Import CSV button, the options 'Import Inp Pump' and 'Import Inp Valves' have been removed from the data-selection widget.

New function 'Set optimum outlet' and refactor of subcatchment views for ud projects

A new function has been developed for UD which sets the optimum outlet node for each subcatchment. The function parameters can be set in table config_param_user where the parameter is called inp_options_hydrology_scenario. In column 'value', the id of the hydrology scenario has to be specified, which must be previously defined into table v_edit_cat_hydrology. Therefore, the function will be executed for one hydrology scenario each time.

The function works for nodes whose epa_type is junction and it updates the field outlet_id from table inp_subcatchment with the node_id acting as an outlet. The function takes into account the minimum elevation of the subcatchment and the elevation of the nodes. Therefore, the column minelev from table inp_subcatchment and field elev from table view v_edit_node must be filled with data to be able to run the function.

Refactor of subcatchment views for UD projects

Table views related to subcatchments have been modified by reordering its fields and adding new ones. These table views are essentially v_edit_inp_subcatchment, vi_subcatcentroid and vi_subcatchment.

Add new actions in info to manage flow regulators & demands for EPA objects

This is a set of actions that can be found in Info Layout inside EPA tab. These actions enable the user to manage flow regulators (orifices, outlets, additional pumps and weirs) and demands for any element. When inserting any flow regulator, it is mandatory to fill the following fields: order_id, to_arc and flwreg_length.

MASTER

Do not allow to insert features with different expl_id than the psector

This prevents the user to insert features from different explotations into a psector that belongs to a specific exploitation.

ADMIN/SYSTEM

Drop obsolete table 'selector plan_psector'

The table selector_plan_psector has been removed from the database, as it is deprecated.

Make multi-transactional some stored procedures

Some of the transactions used one table to store the output information while executing the process. This fact prevented other users to execute some process at the same time, as the table could only be used by one process at each time. To solve this, these kind of tables have become temporal tables. This resulted in a better performance of some relevant procedures in terms of time execution and database usage. The procedures that have been enhanced by far are the following:

  • Flowtrace and flowexit (UD)

  • Graphanalytics minsector (WS)

  • Graphanalytics mapzones (WS and UD)

  • Mincut (WS)

3.5.030

INDEX

  • INVENTORY

    • Allow searching for catalog_id in Change Type & Replace Feature tools

    • Add editing action in dimensioning dialog

    • Automatic district data if geometry exists

  • OM

    • Add chlorine & turbidity fields in Mincut

    • Add type & streetaxis filters in mincut manager

  • EPA

    • Control section inconsistencies between consecutive conduits (UD)

  • SYSTEM

    • Add 'Open plugin folder' action in Giswater menu

INVENTORY

Allow searching for catalog_id in Change Type & Replace Feature tools

Combo box widgets from these 2 buttons have been replaced by typeahead widgets, where users can type the text they are searching for. This change make easier to find the catalog when there is a long list of them.

Add editing action in dimensioning dialog

Edit button have been added into the dimensioning form to make the edition of it's data easier for the users. Notice that, before this version, to edit the data of the dimension, users needed to use the default QGIS edit button.

It will also harmonize Giswater's forms; network forms already have the edit button into the form itslef.

Automatic district data if geometry exists

One of the most recent mapzones on Giswater data model is the District. It represents the administrative boundaries of municipality districts.

In this version, edit triggers on the DB are capable to get automatically the data about which district an element is when inserted. Of course it's only useful if the geometry of the district layer is properly filled.

It harmonizes this mapzone to other ones, which already uses the capability of automatic data from geometry.

OM

Add chlorine & turbidity fields in Mincut

Two new fields have been added to mincut data to collect when the process is on execution.

  • Chlorine - To indicate if there is chlorine in the water on the mincut point.

  • Turbidity - To indicate if the water has turbidity on the mincut point.

These fields can be filled on the second tab of the Mincut form, only when the execution have started.

Add type & streetaxis filters in mincut manager

Two new filters have been added to Mincut Manager. They will allow users to filter mincut list using its Type (mincut_type field) or its Streetaxis (streetaxis field). This second filter function as a typeahead widget, which means that is possible to write and it will return matching street name results.

EPA

Control section inconsistencies between consecutive conduits (UD)

A new function (gw_graphanalytics_upstream_section_control) have been added to Giswater's toolbox to control if the section of consecutive conduits isn't consistent.

It compares section (geom1) data for conduits and warning users if there is some of them where it's section is bigger than the following conduit.

SYSTEM

Add 'Open plugin folder' action in Giswater menu

Now is possible for the users to open the plugin folder where all Giswater files (python and sql) are stored. The path will change depending on the active profile on QGIS.

The goal of this action is to provide a simple acces to this folder, which can be useful for administrators in some occasions. Finding the folder using this button will be way more easy rather than search for it manually.

3.6.015

INVENTORY

Change layer of QGIS template from ext_municipality to v_ext_municipality, which is filtered by user selector.

When creating a Giswater sample, the QGIS template file now uses the view "v_edit_municipality" instead of the table "ext_municipality" to show the limits of the municipality according to the user's selector.

EPA

Manage non numeric values in curves editor.

A warning message is shown when trying to use non-numeric values in curves. This is used to control input values in a more user-friendly way.

Bug fix in Non visual objects manager: sometimes the table don't have rows.

A fix has been done in Non visual objects manager in order to show the rows of the corresponding table.

ADMIN

Show warning message if scipy/numpy packages are not available.

Now, a warning message is shown if Python packages SciPy and NumPy are not available, as these take part in the core functionality of Giswater.

3.6.016

  • INVENTORY

    • Enhance performance for v_edit_node

    • Enable see expl_id2 objects when only expl_id is selected by managing sector_id

    • Change columns brand and model for brand_id and model_id on cat_arc, cat_node and cat_grate UD

    • Add columns brand_id, model_id and serial_number for node and arc UD

    • Delete column serial_number on man_element UD

    • Change name on config_param_system variable from edit_link_check_arcdnom to edit_link_link2network. Add maxDistance as a value and use it on linktonetwork

    • Enable the automatic calculation of label coordinates, label rotation and label quadrant according to a user defined distance from the geometry and the rotation of the feature when inserting or updating a node

  • EPA

    • Update timser_id combo of raingage showing only active timeseries with Rainfall type

INVENTORY

Enhance performance for v_edit_node

The definition of view "v_edit_node" has been changed significantly with the aim of gaining performance. Now, it uses subquerys as well as retriving the information from parent table.

Enable see expl_id2 objects when only expl_id is selected by managing sector_id

Now, it is possible to see the objects from expl_id2 by using the distinct sectors from the selected exploitation.

Change columns brand and model for brand_id and model_id on cat_arc, cat_node and cat_grate UD

Columns "brand" and "model" have been renamed to "brand_id" and "model_id" respectively.

Add columns brand_id, model_id and serial_number for node and arc UD

New columns have been added to tables "node" and "arc" with the aim of disconnecting these attributes from the catalogs "cat_brand" and "cat_brand_model" and assigning them to the objects individually. These columns also exist in view "v_edit_node" and work with the trigger. If these values are null, the value for that object is taken from the catalog "cat_node" or "cat_arc". However, the input value is not subjected to a foreign key and it is possible to set a custom value.

Delete column serial_number on man_element UD

The column "serial_number" has been removed from table "man_element" in UD projects.

Change name on config_param_system variable from edit_link_check_arcdnom to edit_link_link2network. Add maxDistance as a value and use it on linktonetwork

The parameter "edit_link_check_arcdnom" from table "config_param_system" has changed its name by "edit_link_link2network". Moreover, a new key has been added to this parameter with the name of "maxDistance". This parameter is aimed to set a maximum distance at which the connec is going to be connected to the closest arc using the button "Link to network". If the distance from the connec to the closest pipe is greater than the configured "maxDistance", the connec is not going to be connected.

Enable the automatic calculation of label coordinates, label rotation and label quadrant according to a user defined distance from the geometry and the rotation of the feature when inserting or updating a node

Now, it is possible to configure a default position for the labels of a specific feature type. The configuration for this must be done in 2 places: database and QGIS project.

Regarding the database configuration, the key "labelPosition" can be added to column "addparam" from table "cat_feature" to specify the placement of the label for the correspondig object. Here is an example:

{"labelPosition":{"dist":[1,2]}}

The key "labelPosition" has an array of 2 numeric values which indicate the meters in "x" and "y" axis respectively where the label has to be placed regarding the position of the inserted node. If the user has more parameters in column "addparam" from table "cat_feature", the "labelPosition" parameter can be placed next to the existing ones separated by commas.

As for the QGIS Project, the configuration has to be done in the Properties/Labels of layer "Node" (v_edit_node) as it is shown in the picture below:

Finally, when inserting a node whose label position has been configured, the label parameters (coordinates, rotation, etc.) will be calculated and the label will eventually be placed:

At this point, several things can be done regarding the label position. The label rotation can be modified either manually in the Info Form or by changing the position of the connected pipes. Moreover, the label quadrant can be changed via Info Form and the label will be placed in the selected quadrant using the distances configured in the parameter "labelPosition" that has been mentioned before. The available values for label quadrant are the following:

  • TR (top right)

  • TL (top left)

  • BR (bottom right)

  • BL (bottom left)

EPA

Update timser_id combo of raingage showing only active timeseries with Rainfall type

In the Attribute Table of view "v_edit_raingage", only active timeseries are available to be selected as the rainfall type for a raingage (column "rg_id").

3.6.012

  • INVENTORY

    • New style manager & style change button

    • New strategy for dynamic filter by joined use of sector-expl-muni

    • Add the option to set geometry to a document (it can automatically get coordinates from the document's metadata)

    • Add "name" field for documents

    • Add workcat, psector & visit tabs in document dialog

    • Create workcat manager

    • Remove duplicated vertex generated because of the fusion. Use st_removerepeatedpoints function for the new geom

    • Add new fields on inventory tables for UD node, connec, gully: placement_type, access_type

    • Add new field on inventory tables for WS and UD node, arc, connec, gully: label_quadrant

    • Add new fields on inventory tables for WS node, arc, connec: brand, model, serial_number

    • New field for UD arc: visitability

    • New field for UD connec: n_hydrometer

    • New mapzone columns for different tables

  • OM

    • New mapzone for WS: macrominsector with new colums for arc, node, connec, link

    • New mapzones for UD: minsector and macrominsector with new columns for arc, node, connec

    • New columns for WS mapzones: dma_type and dqa_type

    • New columns for UD mapzones: drainzone_type, dma_type, sector_type

    • New column for UD dma and sector: graphconfig

    • New column for UD cat_feature_node: graph_delimiter

    • Improve mincut dialog by ordering the toolbar actions

  • EPA

    • New button "Show INP data" in Go2Epa Manager

    • New behaviour for inlets as a junctions when they are on the end of a sector without continuity with the next one

    • Change "Set archive" button to "Toggle archive" (go2epa manager)

    • Show the dates when an EPA result has been corporate

  • MASTER

    • New function gw_fct_setpsectorcostremovedpipes (associated fid 523)

  • ADMIN/SYSTEM

    • Change all columns code from varchar(30) to text

    • Allow tab ordering in GwInfo (via config_form_tabs)

INVENTORY

New style manager & style change button

A new way to manage layer styles has been added to Giswater core. There are two new tools:

  1. Giswater styles

    • This new tool is located above the ToC and allow users to change the symbology for all configurated layers with only one click. It replaces the EPA World tool that change the default visualization for an hydraulic point of view.

    • Now, not only you can change to an EPA visualization, but also customize your own style configurations that could be interesting for you. By default, Giswater sample has added example styles to categorize the arcs by DMA, Presszone or Sector.

    • By clicking any style on the list, all layers that have been previously configured will change its style. It won’t delete previous style. It will add the selected to a new one for the layer.

    • This behaviour allow users to switch styles easily for multiple layers, changing the whole visualitzation context if needed.

  2. Style manager

    • This new tools is located in the Utils manager button. It opens a form where you can manage existing styles and add new ones.

    • The table shows every existing style configured for layers. Here it is important to filter by symbology Category to reduce the number of layers. There are some buttons with different uses:

      • Button +: Allow add a new symbology category. You need to choose a Category ID (for custom categories id above 900 is recomended), Category name, Description and Role. The new category will appear with no layers related.

      • Button -: To delete the selected style category.

      • Add style: Allow add any selectable layer to the selected category. At the beginning, the style will be the same as the GwBasic. The goal is to relate the layer with the style category.

      • Update style: Allow change style for selected row (be certain at the style configuration to which is related). The update will take the current symbology of the layer on our project and set it as the style for this layer when using Giswater styles button. Its the only way to set a style different from GwBasic for new style configurations.

      • Delete style: To delete the selected row.

      • Refresh all: It will refresh symbology for all layers that have any Giswater configuration symbology on its styles. It is useful to refresh our project if someone else has changed the style configuration but our layers have this style already loaded.

New strategy for dynamic filter by joined use of sector-expl-muni

Now, when a sector, exploitation or municipality is selected in a selector, its related sector, exploitation or municipality is also selected. This works dinamically with the aim of showing all the different mapzones in a selected mapzone.

Add the option to set geometry to a document (it can automatically get coordinates from the document's metadata)

A new button has been added inside the Add Document button in order to add geometry to the document. If not, the geometry can be taken from the document's metadata.

Add "name" field for documents

A column "name" has been added to Documents in order to better identify them by using a customizable name for them.

Add workcat, psector & visit tabs in document dialog

New tabs "Workcat·, "Psector" and "Visit have been added to the Add Document button. The aim of these tabls i to relate the document to a workcat (previously defined in table "cat_workcat"), an existing psector or a visit.

Create workcat manager

A new button has been created in order to manage the catalog of works. When clicking on a workcat, its information is showed in detail.

Remove duplicated vertex generated because of the fusion. Use st_removerepeatedpoints function for the new geom

In previous versions, when performing a new arc fusion, a duplicated vertex was created on the point where the affected node was. It happened because the start and end points of the old arcs were merged.

Now, after performing this process, the function ST_RemoveRepeatedPoints is executed for the new arc to avoid the creation of this vertex duplicity.

Add new fields on inventory tables for UD node, connec, gully: placement_type, access_type

New fields have been added to UD node, connec, gully tables. These are: placement_type and access_type which aim is to show if the feature is inside another element (i.e a well inside a shed) and how it is accessible.

Add new field on inventory tables for WS and UD node, arc, connec, gully: label_quadrant

A new field has been introduced under the name of "label_quadrant" which aim is to store the position of the label by typing its quadrant. The letters available are the following: T for "top middle", B for "bottom middle", L for "left middle" and R for "right middle".

Add new fields on inventory tables for WS node, arc, connec: brand, model, serial_number

New fields have been added to parent tables of WS: brand, model and serial_number which aim is to show on the parent tables this information and relate this information to the feature itself.

New field for UD arc: visitability

A new field has been added to table "arc" from UD: visitability, which aim is to show the capability of the "arc" to be visitable or accessible (for example, when carrying out maintainance tasks or cleaning of the network).

New field for UD connec: n_hydrometer

A new field has been added to connecs from UD: n_hydrometer. This column shows the number of hydrometers associated to a specific connec.

New mapzone columns for different tables

The new columns for the mapzones are the following:

  • For UD projects, new column "muni_id" have been added to table "raingage".

  • For UTILS schema, columns "muni_id" and "sector_id" have been added to tables "samplepoint", "element", "link" and "dimensions".

  • For WS projects, column "muni_id" have been added to tables "pond" and "pool". Additionally, column "sector" has been added to tables "presszone", "dma" and "dqa".

OM

New mapzone for WS: macrominsector with new colums for arc, node, connec, link

A new mapzone has been created under the name of "macrominsector". This is a group of minsectors which aim is to represent topologically connected network features. This mapzone represents the continuity of the network and it is useful to determine connected and unconnected areas of the network.

New mapzones for UD: minsector and macrominsector with new columns for arc, node, connec

Minsectors and macrominsectors have also been added to UD projects like it happens in WS projects. The concept of minsectors and macrominsectors in UD is the same as in WS. Two new tables have been added (tables "minsector" and "macrominsector") and columns for both mapzones have been added to parent tables (minsector_id, macrominsector_id).

New columns for WS mapzones: dma_type and dqa_type

New columns "dma_type" and "dqa_type" have been added to mapzone tables of WS projects. The domain of values for these columns can be configured in table "edit_typevalue" where typevalue is "dma_type" or "dqa_type" respectively.

New columns for UD mapzones: drainzone_type, dma_type, sector_type

New columns "drainzone_type", "dma_type" and "sector_type" have been added to mapzone tables of UD projects. The domain values for these columns can be configured in table "edit_typevalue" the way is explained in the previous point.

New column for UD dma and sector: graphconfig

A new column "graphconfig" has been added to tables "dma" and "sector" with the purpose of configuring a mapzones analysis like WS.

New column for UD cat_feature_node: graph_delimiter

A new column "graph_delimiter" has been added to table "cat_feature_node" for UD projects with the same purpose of the same column in WS.

Improve mincut dialog by ordering the toolbar actions

The buttons inside the Mincut button have been ordered in a better way to improve the usage of the Mincut tool. Now, the buttons have been grouped into 3 groups and each group of buttons gets enabled sequently according to the steps of creating a mincut.

EPA

New button "Show INP data" in Go2Epa Manager

A new button has been developed inside Go2Epa in order to show the results of the selected "result_id". These are loaded into the QGIS project on temporal layers.

New behaviour for inlets as a junctions when they are on the end of a sector without continuity with the next one

A new behaviour has been added to inlets that consist of acting as junctions when they are located at the end of a sector which doesn't have continuity with the next sector. Thus, 3 new columns "demand", "demand_pattern_id" and "emitter_coeff" have been added to table "inp_inlet".

Change "Set archive" button to "Toggle archive" (go2epa manager)

The button "Set archive" inside Go2Epa Manager has been renamed to "Toggle Archive".

Show the dates when an EPA result has been corporate

When an EPA result becomes "corporate" in WS projects, the info of that EPA results show the timestamp from which it has been corporate.

MASTER

New function gw_fct_setpsectorcostremovedpipes (associated fid 523)

A new function has been developed in order to calculate the cost of removing the pipes of a specific material. It is necessary to select the exploitation, the material of choice and write the price code to be used to calculate the price of removal. This code has to exist in table "plan_price". When the process is finished, a temporal layer is loaded showing the pipes involved and its removal cost.

ADMIN/SYSTEM

Change all columns code from varchar(30) to text

The data type of columns "code" have been replaced from varchar(30) to text in order to allow big number of characters.

Allow tab ordering in GwInfo (via config_form_tabs)

Now, it is possible to order the tabs of the info form by editing column "orderby" from table "config_form_tabs".

Change log

In below pages you find a detailed Giswater change log for every version since 3.5.020 ⤵️

You can also find listed change logs on Github for every version since 3.4.026:

3.6.013

INVENTORY

Configure 'Change feature type' form in config_form_fields and add 4 new widgets: Fluid, Location, Category & Function

New widgets Fluid, Location, Category and Function have been added to config_form_fields in order to configure the button "Change feature type". The values of fluid, location, category and function type of the current feature are shown as the first option of the combo widgets. Now, it is possible to change them by selecting the available options on the combo widgets.

OM

Add 'ignore' to mapzone config

A new widget has been added into Mapzone config in order to add nodes into "ignore" key of the json configuration for mapzones.

SYSTEM

Add project variable 'gwCurrentStyle'

A new variable has been added to the QGIS Project properties in order to show the current style of the project. The number references the identification number of the style loaded from table "sys_style".

Change log for 3.6.016
Change log for 3.6.015
Change log for 3.6.014
Change log for 3.6.013
Change log for 3.6.012
Change log for 3.6.011
Change log for 3.6.010
Change log for 3.6.009
Change log for 3.6.008
Change log for 3.6.007
Change log for 3.6.006
Change log for 3.6.005
Change log for 3.6.004
Change log for 3.6.003
Change log for 3.6.002
Change log for 3.6.001
Change log for 3.5.040
Change log for 3.5.039
Change log for 3.5.038
Change log for 3.5.037
Change log for 3.5.036
Change log for 3.5.035
Change log for 3.5.034
Change log for 3.5.033
Change log for 3.5.032
Change log for 3.5.031
Change log for 3.5.030
Change log for 3.5.029
Change log for 3.5.028
Change log for 3.5.027
Change log for 3.5.026
Change log for 3.5.025
Change log for 3.5.024
Change log for 3.5.023
Change log for 3.5.022
Change log for 3.5.021
Change log for 3.5.020
Github Changelog

3.6.014

INVENTORY

Fix zoom & highlight to workcat features

The zoom and highlight of the columns and rows has been fixed in workcat manager

Fix double-click on hydrometer table in info

A bug fix has been made when cliking twice on the hydrometers that are found inside tab "Hydrometer" of Connec forms.

Disable "Run" button on toolbox if no input layers found

When using functions of the toolbox, the button "Run" to start the function has been disabled unless input layers are set.

EPA

Fix "Shape to PNG" button in Non-Visual Objects

A bug fix has been made in button "Shape to PNG" inside of button "Non-Visual Objects".

Bug fix on 'Set junctions as outlet' toolbox function

Bug fix has been made in toolbox function "Set junctions as outlet".

SYSTEM

Bug fix on the use of specific sequence for feature codes

Bug fix has been made when setting a specific sequence for feature codes.

3.6.009

OM

Set graphconfig and stylesheet as text on v_edit_drainzone (ud)

A minor fix has been done in table view v_edit_dma in order to ease the edition of column "graphconfig".

EPA

Check links over nodarcs only when export mode 'Network & Connecs' for WS projects

Now, links over nodarcs will be checked as part of the first check data only when export mode "NETWORK & CONNECS" is selected in Go2EPA Options.

3.6.004

INDEX

  • INVENTORY

    • New field trace_featuregeom on element and polygon to enable or disable their movement according to the movement of its feature

    • Modify edit triggers to check that inserted streetname exists on ext_streetaxis

  • OM

    • New function gw_fct_graphanalytics_mapzones_plan

    • New button: Utils manager (mapzones manager & prices manager)

    • Add Visit Catalog and Parameter Catalog to Load Giswater Layers button

  • EPA

    • EPA results manager: add "Archive" button

    • New function (3266) gw_fct_set_rpt_archived that moves data related to selected result_id from rpt and rpt_inp tables to archived tables

    • New function (3268) gw_fct_pg2epa_setinitvalues that updates initlevel of inlets and tanks using values from selected simulation

    • Enhance views (vi_t_) to export timeseries, patterns and curves from project to inp file only when they are used

  • MASTER

    • New button: Netscenario manager

    • New tables: plan_netscenario, plan_netscenario_dma, plan_netscenario_presszone, plan_netscenario_arc, plan_netscenario_node, plan_netscenario_connec for storing data related to mapzone netscenario.

    • New function gw_fct_graphanalytics_mapzones_plan

    • New function gw_fct_mapzones_dscenario_pattern

    • New functions: gw_fct_create_netscenario_empty, gw_fct_create_netscenario_from_toc, gw_fct_duplicate_netscenario

    • New field is_waterbal on ext_rtc_hydrometer

  • ADMIN/SYSTEM

    • Bug fix: toolbox dialogs' titles now show function name

INVENTORY

New field trace_featuregeom on element and polygon to enable or disable their movement according to the movement of its feature

A new field has been added to tables polygon and element which enables the user to attach or detach their geometry from a node/connec/gully/element. This fact enables or disables the movement of the polygon or element with the movement of the node and connec.

Modify edit triggers to check that inserted streetname exists on ext_streetaxis

Before saving changes when inserting or updating the street name of a feature, the existance of the street name will be checked by looking it into the table ext_streetaxis. This fact will keep the uniqueness of the street names into the data base.

OM

New button: Utils manager (mapzones manager & prices manager)

The mapzones’ manager and prices’ manager can now be found grouped together into a single button called “Utils manager”.

The Mapzones Manager has also been enhanced with a Config Button that eases the configuration of mapzones in a more friendly way. This tool is controlled by a new function (gw_fct_config_mapzones - 3270 ) and it consists of a wizard that builds the json string needed for configurating the graphconfig of the selected mapzone. The wizard asks the user some data to be filled in the blank spaces, which can be filled using the QGIS Selector tool and then added to the json string by clicking on the ADD Button. There is also a 'REMOVE' Button to rollback in the process. Eventually, when the json string is built, the graphconfig for the selected mapzone will be properly configured.

Add Visit Catalog and Parameter Catalog to Load Giswater Layers button

Now it is possible to load the Visit Catalog (table 'om_visit_cat') and the Parameter Catalog (table 'config_visit_parameter') using the Load Giswater Layer button. Both tables will be added to the layer group OM on its upper part.

EPA

EPA results manager: add "Archive" button

A new button to archive the EPA results has been added to the EPA Result Manager button. Once a record of the table is selected, the Archive button will store the results in specific tables of the data base and the result status will switch to 'ARCHIVED'. The purpose of this button is to enhance the performance of the table 'rpt_arc' due to its overload when many models where executed. The tables that store the archived results are the ones with the prefix "archived_" in the data base.

New function (3266) gw_fct_set_rpt_archived that moves data related to selected result_id from rpt and rpt_inp tables to archived tables

This function carries out the process of archiving the EPA Results once the user selects a result in the EPA Result Manager Button and clicks on the Archive button that was mentioned in the previous point.

New function (3268) gw_fct_pg2epa_setinitvalues that updates initlevel of inlets and tanks using values from selected simulation

This function enables the option of keeping the ending values of a simulation and use them as initial values for a new simulation.

Enhance views (vi_t_) to export timeseries, patterns and curves from project to inp file only when they are used

Timeseries, patterns and curves are not going to be exported unless they are used. This enhancement of performance happens when exporting the INP File.

MASTER

New button: Netscenario manager

A new button has been added into 'plan' toolbar under the name of "Net Scenario".

This button enables the user to work with planned mapzones (DMA and PRESSZONES) the same way as working with psectors or dscenarios. Mapzones from Netscenarios can be executed resulting in temporal graph layers and eventually work with them like in a test environment before commiting changes. Every Netscenario can take one or several mapzones. Netscenarios can be created either without containing any mapzone or containing a copy of the existing ones by using the Create Button in the main dialog.

Once created, the Netscenario will appear in the main dialog of the button. In case it contains mapzones, they can be loaded into the project by clicking on the Load Giswater Layers icon from the button. There is also a Selector button next to it in order to filter Netscenarios by its name.

Inside each Netscenario, there are many properties that can be customizable like happens in Mapzones Manager Button. These are, for example, configuring a DMA graphconfig with a wizard, creating new netscenarios, adding features to the Netscenario or deleting them. It is possible to add features by typing their feature id in the upper left box of the selected Netscenario or selecting the features with the QGIS Selector Tool.

As for the tab 'DMA', it works the same as in the Mapzones Manager. It is possible to add DMAs by selecting them with the QGIS Selector Tool or by copying an existing DMA. Also, the graphconfig value can be configurable using the Config button the way it happens in Mapzones Manager Button.

New tables: plan_netscenario, plan_netscenario_dma, plan_netscenario_presszone, plan_netscenario_arc, plan_netscenario_node, plan_netscenario_connec for storing data related to mapzone netscenario.

Several tables have been included into the data model to store data related to Netscenario. These are the following:

  • plan_netscenario: as the main table of the button

  • plan_netscenario_arc/node/connec/dma/presszone: each tab appearing inside every Netscenario has its associated table. There is one tab for each feature and also a tab of the mapzone which will be updated

  • v_edit_plan_netscenario_dma/presszone: these are the views for Netscenarios for Mapzones

  • v_plan_netscenario_node/arc/connec: these are the views for the features for each Netscenario

  • selector_netscenario: the Netscenario button has its own selector with which the user can filter by Netscenarios.

New function gw_fct_graphanalytics_mapzones_plan

This function controls the process of creating mapzones on Netscenarios in tab 'Dma'. It can be executed by clicking in the Create Button in the main layout of the Netscenario Button.

New function gw_fct_mapzones_dscenario_pattern

This function is used for inserting features and its patterns into demand scenarios based on values assigned to each netscenario mapzone. This can be done inside the Dscenario Manager Button.

New functions: gw_fct_create_netscenario_empty, gw_fct_create_netscenario_from_toc, gw_fct_duplicate_netscenario

These functions carry out the process of creating new Netscenarios. Netscenarios can be created from zero (gw_fct_create_netscenario_empty), from an existing Netscenario (gw_fct_duplicate_netscenario) or from a layer of the QGIS ToC (gw_fct_create_netscenario_from_toc).

New field is_waterbal on ext_rtc_hydrometer

This field is used for indicating the hydrometers that take part in water balance calculations. It is a boolean column where its True or False values indicate whether the hydrometers values are being used for water balance calculations or not.

ADMIN/SYSTEM

Bug fix: toolbox dialogs' titles now show function name

Now, the toolbox dialogs show the function name enabling the user to identify the function.

3.6.011

  • INVENTORY

    • Add tab muni on Selector showing as many exploitations as the municipality has (disabled by default)

    • Enable the possibility to use a specific sequence on code for every feature type

    • Relate connec.plot_code with table by using plot code if variable edit_connec_autofill_plotcode is true

    • New field on ext_municipality, ext_region, ext_province: ext_code

    • Add utils table ext_province_x_region with double fk to ext_municipality

    • Add combo for feature_type on dimensions dialog [ARC, NODE, CONNEC {GULLY}]

  • OM

    • Rename config_graph_inlet to config_graph_mincut

    • Remove expl_id from config_graph_mincut

    • Disable mincut if user hasn't any inlet on canvas to work with

    • Remove config_graph_valve strategy by using graph_delimiter column from cat_feature

    • Add '%' symbol on profile's slope

  • EPA

    • Remove to_arc and status on inp_shortpipe. Instead, now inventory values are used

  • MASTERPLAN

    • New variable "plan_node_replace_code"

    • New fields on plan_netscenario_presszone and plan_netscenario_dma: stylesheet, expl_id2

  • ADMIN/SYSTEM

    • Enhance cat_manager by working with system users and roles

    • Clean dbmodel: Drop views vi_parent_arc, and v_anl_flow_*

INVENTORY

Add tab muni on Selector showing as many exploitations as the municipality has (disabled by default)

A new tab has been added in order to see the exploitations that each municipality has. To enable this tab, the column "enabled" in table "config_param_system" has to be set to "True" for the parameter "basic_selector_tab_municipality".

Enable the possibility to use a specific sequence on code for every feature type

A new functionality has been developed in order to set a customized code for feature types. First, it is necessary to create a sequence on the database which name is the concatenation of the "id" of table "cat_feature" and the words "code_seq" (i.e "circ_manhole_code_seq). Then, this sequence is going to be used when inserting new objects of that type of feature.

Additionally, a prefix can be used in combination of the sequence to build the code for the object. To do so, a JSON string has be to added in column "addparam" of table "cat_feature". This JSON has to contain the key "code_prefix" and the prefix itself as the value of that key.

Relate connec.plot_code with table by using plot code if variable edit_connec_autofill_plotcode is true

If true, this variable enables the possibility to capture by intersection the plot code for the connec inserted. It can be found in table "config_param_system" where parameter name is "edit_connec_autofill_plotcode". It is necessary to fill the table "ext_plot" with the geometries of the plots and its cadastral reference or plot code in order to see how it works.

New field on ext_municipality, ext_region, ext_province: ext_code

A new field has been added into tables "ext_municipality", "ext_region" and "ext_province" under the name of "ext_code". The aim of this field is to enable the possibility to use an external code to identify the municipality, region and province. This code can be either an oficial standard code or a customized code.

Add utils table ext_province_x_region with double fk to ext_municipality

A new table called "ext_province_x_region" has been added with foreign keys to table "ext_muncipality". This table stores the relationship between province and regions.

Add combo for feature_type on dimensions dialog [ARC, NODE, CONNEC {GULLY}]

Now, it it possible to choose the feature type in the info form of a dimension object.

OM

Rename config_graph_inlet to config_graph_mincut

Table "config_graph_inlet" has been renamed to "config_graph_mincut".

Remove expl_id from config_graph_mincut

Column "expl_id" has been removed from table "config_graph_mincut".

Disable mincut if user hasn't any inlet on canvas to work with

Mincut is disabled unless an operative inlet is located in the working canvas.

Remove config_graph_valve strategy by using graph_delimiter column from cat_feature

The configuration for valves now it is done by column "graphdelimiter" of table "cat_feature".

Add '%' symbol on profile's slope

The symbol "%" now appears in the profile picture in order to show the units of slope.

EPA

Remove to_arc and status on inp_shortpipe. Instead, now inventory values are used

Columns "to_arc" and "status" can now be found in table "config_graph_checkvalve" as part of the inventory values.

MASTERPLAN

New variable "plan_node_replace_code"

The aim of this variables is to trace the original code to a node that has been involved in a feature when a node replace is done in planification mode using the spceific tool Psector Relations tab. This variable can be found in table "config_param_system" under the name of "plan_node_replace_code".

New field on plan_netscenario_presszone: presszone_type

A new column "presszone_type" has been added to table "plan_netscenario_presszone". The available values for this columns are present in catalog "edit_typevalue" where column "typevalue" is "presszone_type".

New fields on plan_netscenario_presszone and plan_netscenario_dma: stylesheet, expl_id2

New columns "stylesheet" and "expl_id2" have been added to tables "plan_netscenario_presszone" and "plan_netscenario_dma".

ADMIN/SYSTEM

Enhance cat_manager by working with system users and roles

Now, the table "cat_manager" works with database system roles and users instead of working with the content of table "cat_users".

Clean dbmodel: Drop views vi_parent_arc, and v_anl_flow_*

Views vi_parent_arc and v_anl_flow views have been deleted in order to clean unnecessary views.

3.6.008

  • INVENTORY

    • Add action "rotation" on node custom form for UD

  • OM

    • Add new option in Minsector Analysis to ignore broken valves

    • Add action "mincut_export_hydro_csv" on mincut form

  • EPA

    • Rename of inp_options_networkmode by using only [BASIC NETWORK, NETWORK & CONNECS]

    • Add info form to edit dscenario items

  • MASTER

    • Allow setting geometry to psector other prices

    • Set style for netscenario layers when loaded

  • ADMIN/SYSTEM

    • Refactor schema creation to be much more efficient and faster

INVENTORY

Add action "rotation" on node custom form for UD

A new action for rotating nodes has been added to the form of nodes from UD projects. Once clicked, the node of choice has to be selected in order to rotate its direction.

OM

Add new option in Minsector Analysis to ignore broken valves

A new option has been added to Minsector Analysis which enables the user to ignore the valves that are broken and open.

Add action "mincut_export_hydro_csv" on mincut form

Now, it is possible to export the hydrometers affected by the mincut by clicking on the upper button of Export Hydro Csv of the dialog.

EPA

Rename of inp_options_networkmode by using only [BASIC NETWORK, NETWORK & CONNECS]

The name of the network mode (inside Go2EPA Options) has changed from "CONNEC (ALL NODARCS) and NODE (BASIC NODARCS)" to "NETWORK & CONNECS and BASIC NETWORK".

Add info form to edit dscenario items

Now, it is possible to see an info form of a feature belonging to a dscenario by clicking twice on its record.

MASTER

Allow setting geometry to psector other prices

Now, it is possible to add geometry to those psectors that do not have any relation but one or various features in tab "Other Prices". This is useful when planning several operations on existing features which do not have geometry itself (i.e. several structural enhancements on existing features). This enhancement helps the composer to show the extent of the psector and show its geometry.

Inside a psector without any relation, when a feature is added to Other Prices and selected by checking its checkbox, the button Set geometry gets enabled.

Then, the user must click on the map where the geometry is going to be generated for that psector and eventually a new polygon is created for that psector.

Set style for netscenario layers when loaded

A new style has been defined for Netscenario Layers when they are loaded by using the Load Giswater Layers.

ADMIN/SYSTEM

Refactor schema creation to be much more efficient and faster

A huge enhancement has been done in the process of creating a new schema. The way the schema is created has been refactored and therefore enhanced its performance.

3.6.010

INVENTORY

Refactor database structure to manage additional fields

A huge refactor has been done in order to manage additional fields (addfields), which results in a better database organization and efficiency. In terms of the appearance, an enhancement has been done in the dialogs in order to ease the addition of fields to all features, specific features or each singular element from table cat_feature. Moreover, the value domain of the selectors and text boxes from the dialog have been changed in order to standardize and fix the relation between the dialog and table "config_form_fields".

In terms of functionality, the table "man_addfields_value" has been removed with the purpose of simpliflying the management of values of the additional fields that are created. Thus, for each feature involved in the creation of an additional field, a new separate table is created in order to store the values of its additional fields.

As an example, an additional field created for hydrants will lead to the creation of a new table consisting of the feature_id and as many columns as there are additional fields for the hydrant. On the other hand, when additional fields for multiple features are created, a new column for each additional table is created. Finally, the additional fields are added to child views by joining these additional tables to the editable views.

Change QGIS templates: add direction arrow on links and delete flowtrace layers for UD

An arrow has been added to links' symbology of the QGIS template project in order to show their direction. This arrow can only be seen at high zooms.

CAD Tools: Show a preview of what will be drawn & change circle geometry type to MultiCurve

An enhancement in CAD tools has been implemented by showing a preview of the geometry as values are entered in the text boxes. This results in a more interactive tool and easy to use.

Moreover, the geometry type of circles has been changed to multicurve as an enhancement in order to simplify the geometry.

Add layers button: ask before removing a layer

A warning appears when a layer that has been previously loaded through Add Giswater Layers button is going to be removed from QGIS Canvas.

Refactor of gw_trg_link_connecrotation_update. Drop not necessary code and make it useful for QGIS latest versions (quadrant has change to position priority)

An enhancement has been done in connecs' symbology in order to rotate its label using the angle between the pipe and its link. This is controlled through a variable in table "config_param_system" called "edit_link_update_connecrotation" and it takes boolean values (true or false to enable or disable this property).

Once the variable is set to True, the symbology of connecs must be configurated by using the parameters' configuration written in column "descript" of table "config_param_system" for the parameter "edit_link_update_connecrotation".

New field meter_code on man_meter (WS)

A new field has been added to table "man_meter" under the name of "meter_code" in order to type the serial number or identification code for that meter.

OM

Allow using the selected exploitations on mapzones analysis

A new option has been added to the dialog of Mapzones Analysis in order to execute the mapzones analysis for the selected exploitation in the Giswater Selector.

EPA

Enable tab 'Additional pump' in Dscenario and add/edit controls & rules with proper dialog

The dialogs for Additional Pumps, Rules and Controls have been enabled. Now, it is possible to add additional pumps, controls or rules to the selected dscenario.

Calculate avg_press on mapzones for corporate results

Now, when a hydraulic model is set as a corporate, the mean pressure of all nodes and/or connecs (depending on the selected simulation options) is calculated for all the mapzones involved in that model. This value is stored in column "avg_press" for each mapzone table in WS projects.

ADMIN/SYSTEM

PG_SERVICE: Improve management of credentials when using pgservice file

An enhancement has been done in order to manage the PG Service credentials by adding a new environment variable.

3.6.005

INDEX

INVENTORY

Add a Default macroexploitation even for Empty new projects

A new macroexploitation has been created acting as a default macroexploitation. This takes place in order to ease the initial management of mapzones and eventually reduce complexity at early stages of a Giswater projects.

New fields on link: connecat_id, drainzone_id, workcat_id, workcat_id_end, startdate, enddate.

New fields have been added to table ‘link’ in order to make it similar to the other 3 feature parent tables (arc, connec, node). These are:

  • connecat_id: it is the catalog code for connecs. It can be built by concatenating the material and diameter

  • drainzone_id: it is the id of the drainzone it belongs (only for UD Projects)

  • workcat_id and workcat_id_end: it is the work file of the begining and endwhere the link belongs

  • startdate, enddate: it is the start and and date

EPA

New button to delete items from curve (non-visual objects)

A new button for deletion of curves or similar elements has been added to the Non-Visual Objects Manager.

New field sector_id on inp_transects (UD).

A new field for sector_id has been added to table inp_transects in UD schemas.

New view v_edit_inp_transects with trigger.

A new editable view of the table ‘inp_transects’ has been created, including its corresponding trigger that makes it an editable view.

MASTER

Enhancement: highlight features with state 0 in psector

The aim of this enhancement is to identify those features that will be downgraded to 'obsolete' after executing the psector. They will be highlighted in blue once the record is selected.

Add new button to info right-click menu to open/close valves in netscenario

To access this functionality, it is necessary to load the layer 'netscenario valve' into the Layer Manager of QGIS. The Netscenario Valve layer can be loaded to QGIS by clicking in the Load Giswater Layers Buton inside the main dialog of Netscenarios and selecting 'Netscenario valve'.

Once it shows up, it is possible to open and close valves of a Netscenario by right-clicking on a valve with the Info Button of Giswater. This is only possible for those valves that belong to the Netscenario setted as Current Netscenario.

New button "toggle active" in netscenario

A new button in tab ‘Dma’ of a selected Netscenario has been added with the purpose of activating or deactivating the DMAs of a selected Netscenario.

New fields on plan_netscenario_dma and plan_netscenario_presszone

New fields have been added to tables plan netscenario_dma and plan_netscenario_presszones in order to enhance its management. The fields are the following: active, lastupdate and lastupdate_user.

New table plan_netscenario_valve and its editable view v_edit_plan_netscenario_valve

A new table has been created by the name of 'plan_netscenario_valve' with the purpose of managing valves in Netscenarios. There is also its editable view called 'v_edit_plan_netscenario_valve' through that changes are applied into the mentioned table.

New function (3278) gw_fct_import_netscenario_valve_closed to import closed valves into netscenario configuration.

There is a new option inside Import CSV button that allows the user to import closed valves into a netscenario from a CSV file. An example of the structure that must have that CSV can be found in folder '\resources\example\csv\netscenario_closed_valve' in the plugin folder. In order to enable this function into de Import CSV Button, it is necessary to set the 'active' column to 'True' in table 'config_csv' where the alias is called 'Import netscenario closed valves'.

ADMIN

Fix snapping when inserting features

A bug fix has been done when using the snapping mode in QGIS. Now, it does not deactivate randomly by its own when working with Giswater, which results in a better performance and integrity of Giswater into the QGIS environment.

Add date of creation in schema properties

The date of creation of the schema has been added to the main button of Giswater. This may give a temporal reference about the age of the schema, which contributes to give further descriptive information about it.

3.6.006

INDEX

INVENTORY

New variable to open Hydrometer tab on Connec instead of Basic Form when searching an hydrometer

A new parameter has been added to table config_param_system under the name of basic_search_hydrometer_show_connec. This variable is involved with tab Hydrometer inside the Search plus Button and it displays the hydrometer info through a Basic Info form or a Giswater Info form according to the parameter's value. When its value is FALSE, the hydrometer info will show up on a Basic Info form. Otherwise, if the parameter is set to TRUE, the hydrometer info will appear on a Giswater Info form by showing up the tab Hydrometer of its related connec.

Creation of example data for inventory

A new option is available in the main dialog of the plugin when creating a new DB Project Schema. Now, it is possible to create an example data containing only those features related to inventory. Comparing to the Full Example, the Inventory Example does not provide hydraulic modelling data.

EPA

Manage Hydrology scenarios and DWF Scenarios (UD)

Hydrology and Dry Water Flow (DWF) Scenarios can now be manage by using the Dscenario Manager button.

Each of them has its own dialog and several buttons to manage its properties. It is possible to create empty scenarios or scenarios with values, as well as Duplicate them, Delete them or Update its properties. There is also a Toolbox button which opens the Toolbox Function of Manage Hydrology Values or Manage DWF Values in each case.

Add Roughness catalog on Non-Visual Objects Manager (WS)

The Roughness Catalog has been added as a new tab into the Non-Visual Objects Manager. Now, it is possible to manage the roughness of any material through the different buttons shown in the Non-Visual Objects Manager. This is a more integrated way of managing the roughness as a non-visual object.

Huge enhancement of performance by creating rpt_arc and rpt_node stats table with materialized results

A performance enhancement has been made on the whole process of creating and displaying the EPA Results. The enhancement consists of creating 2 new tables (rpt_arc_stats and rpt_node_stats) and show the information through the table views v_arc and v_node. The table view definitions have been modified in order to avoid extracting data via complex queries. Now, these table views show the data from the new mentioned tables, avoiding complex queries.

MASTER

Enhance button execute netscenario on Netscenario Manager

A new button has been added to the Netscenario Manager. Once a netscenario is selected, the button can be used in order to execute a Mapzone Netscenario analysis.

New function to merge psectors (gw_fct_psector_merge)

A new function has been developed in order to merge multiple psectors into a single one. This can be found as a new button in Psector Manager or as a new function in the Giswater Toolbox.

Having selected 2 or more psectors, the Merge button from above can be used to merge them. This button opens the function dialog where the parameters are already set if the operation has been done from the Psector Manager. It is mandatory that the selected psectors have the same status, priority, psector_type and expl_id so they can be merged.

Once the process starts, a new psector will be created as a result of merging the selected psectors. Also, several log messages will appear in the Info Log tab indicating all the actions that have taken place during the merging process.

New function setreapirpsector to be used to repair psectors when they have wrong topology

This function fixes topological issues in psectors. It fixes the following issues:

  • Fills the "link_id" for obsolete connecs (those with state=0) where "link_id" is null

  • Finds and repairs operative and planned arcs without operative nodes in the psector

  • Finds and repairs planned arcs without planned nodes in the psector

This function warns the user about topological errors that have been generated while using the Psector Manager. Once any of the mentioned issues occure, a warning message appears and gives the option to overview the topological issues.

When the dialog appears, the topological issues appear marked in red. By clicking on the Repair button, the function setrepairpsector runs and fixes the topological inconsistencies shown in the dialog.

Enhance import rpt results in order to load it when they are generated by EPANET ui

Now it is possible to import an EPANET result file not only when the simulation has been run through command line but also when it has been run using the EPANET User Interface.

INVENTORY
Refactor database structure to manage additional fields
Change QGIS templates: add direction arrow on links and delete flowtrace layers for UD
CAD Tools: Show a preview of what will be drawn & change circle geometry type to MultiCurve
Add layers button: ask before removing a layer
Refactor of gw_trg_link_connecrotation_update. Drop not necessary code and make it useful for QGIS latest versions (quadrant has change to position priority)
New field meter_code on man_meter (WS)
OM
Allow using the selected exploitations on mapzones analysis
EPA
Enable tab 'Additional pump' in Dscenario and add/edit controls & rules with proper dialog
Calculate avg_press on mapzones for corporate results
ADMIN/SYSTEM
PG_SERVICE: Improve management of credentials when using pgservice file
INVENTORY
Add a Default macroexploitation even for Empty new projects
3.6.005
EPA
New button to delete items from curve (non-visual objects)
3.6.005
3.6.005
MASTER
Enhancement: highlight features with state 0 in psector
Add new button to info right-click menu to open/close valves in netscenario
New button "toggle active" in netscenario
New fields on plan_netscenario_dma and plan_netscenario_presszone
New table plan_netscenario_valve and its editable view v_edit_plan_netscenario_valve
New function (3278) gw_fct_import_netscenario_valve_closed to import closed valves into netscenario configuration.
ADMIN
Fix snapping when inserting features
Add date of creation in schema properties
INVENTORY
New variable to open Hydrometer tab on Connec instead of Basic Form when searching an hydrometer
Creation of example data for inventory
EPA
Manage Hydrology scenarios and DWF Scenarios (UD)
Add Roughness catalog on Non-Visual Objects Manager (WS)
Huge enhancement of performance by creating rpt_arc and rpt_node stats table with materialized results
MASTER
3.6.006
New function to merge psectors (gw_fct_psector_merge)
New function setreapirpsector to be used to repair psectors when they have wrong topology
Enhance import rpt results in order to load it when they are generated by EPANET ui

3.5.037

EPA

Bug fix in Dscenario Manager

Bug fix: dscenario manager get correct feature_type

Fix section title in go2epa options dialog

Minor syntax fix for DATA & TIME section on Go2epa diaglo

Enhance options for go2epa (ws & ud)

Giswater's EPA options have been updated according to the lastest versions of EPANET and SWMM.

ADMIN/SYSTEM

Bug fix with config files

Bug fix on plugin's config files. Avoid duplicate rows and prevent plugin error.

3.5.034

MASTER

Rename psector budget views

Two views related to psector budget have been renamed:

  • v_plan_current_psector_budget is now v_plan_psector_budget

  • v_plan_current_psector_budget_detail is now v_plan_psector_budget_detail

Bug fix from refactor links. Insert connects with state 0 on psector when planified node over operative node

There was a bug when replacing operative node with a planified node. Connects were not properly inserted on plan_psector_x_connec table.

3.6.003

INDEX

  • INVENTORY

    • Add new function to make massive interpolation for nodes (UD)

  • EPA

    • Go2Epa multistep approach

    • Add properties button in dscenario dialog

    • Improvements & fixes to flowregulator & demand actions

  • ADMIN/SYSTEM

    • Drop config_visit_class_x_feature (unused table)

    • Reduce the time it takes to open the info form

    • Fix highlight for polygons

INVENTORY

Add new function to make massive interpolation for nodes (UD)

Massive interpolation is a new function very similar to the conventional Interpolation Function that already exists and it updates the elevation of all nodes by means of interpolation.

This function has to be executed through SQL Query on a data base manager outside from QGIS and it only works for Giswater UD Projects. A sample query can be found in the upper part of the file where the function is stored. It is optional to carefully modify the last statement from the sample function, which corresponds to the "queryFilter" parameter. The "queryFilter" parameter can contain a SQL statement in order to execute the function for a specific group of nodes that share any characteristic (for example, those nodes whose elevation is a null value). The value for the "queryFilter" parameter (which is the SQL statement) can be left null by keeping its double quotes and therefore the function will work for all nodes without any exception.

SELECT ud.gw_fct_node_interpolate_massive ($${"client":{"device":4, "infoType":1, "lang":"ES"}, 
"form":{}, "feature":{}, "data":{"parameters":{"queryFilter":""}}}$$);

EPA

Go2Epa multistep approach

This enhancement not only consists of a more detailed log message when exporting the inp file but also consists of a better performance of the whole process. This means that the process is faster and does not block the tables of the database that are involved in it.

Add properties button in dscenario dialog

A button of Properties has been added to each individual dscenario in order to manage its general options in a more efficient way. The user can modify the general dscenario properties and eventually they will be updated immediately. On the other hand, the specific features involved in each dscenario can be modified the same way as before.

Improvements & fixes to flowregulator & demand actions

Some fixes have been done in the upper tool bar of the tab EPA that have been recently introduced in version 3.6.

ADMIN/SYSTEM

Drop config_visit_class_x_feature (unused table)

Table config_visit_class_x_feature have been deleted as this table is deprecated.

Reduce the time it takes to open the info form

Performance on opening the Info Form has been enhanced and now it opens faster.

Fix highlight for polygons

This prevents the plugin from crashing when using the Info Button for a polygon of a feature. Now, it is save to do this procedure without any problem.

3.6.007

INDEX

  • INVENTORY

    • Add new field 'plot_code' to connecs

    • Drop not null for dma's (ud and ws)

    • Set epa_type not null in connecs

  • EPA

    • Enable setting the outlet_id of subcatchments by editing the view v_edit_inp_subc2outlet

    • Use copy-paste on non-visual objects and dscenario demand dialogs

    • Refresh EPA world view if networkmode changed

    • Add selector period strategy on selector

    • New checks on EPA data consistency

  • ADMIN

    • Add Import DWF to Import CSV

    • Refactor of the creation of projects (empty, inventory, full and Import inp)

    • Add 'Show inactive' checkbox on managers

    • Enable the possibility to delete all selected rows in managers

INVENTORY

Add new field 'plot_code' to connecs

A new field has been added (plot_code) to connecs in order to show the code of the plot where they belong. It can be useful to store the cadastral referency code for those connecs inside buildings or parcels.

Drop not null for dma's (ud and ws)

The NOT NULL constraint for parent tables on column "dma_id" has been removed to ease the management of those elements that don't necessary belong to any DMA.

Set epa_type not null in connecs

The connecs have now a NOT NULL constraint in epa_type column in order to strengthen the hydraulic modelling data.

EPA

Enable setting the outlet_id of subcatchments by editing the view v_edit_inp_subc2outlet

Now, it is possible to set the outlet_id of any subcatchment by pointing the arrow of the table view Subcatchment2Outlet (v_edit_inp_subc2outlet) to the outlet to which the subcatchment has to drain the water.

It is necessary to select the layer "Subcatchment2Outlet" (inside the layer group "Hydrology") and use the Toggle Editing tool of QGIS. Then, the vertex of the line that points out to the outlet can be modified by the user and therefore set the vertex to another outlet of choice (junction or subcatchment)

By doing this, the outlet_id of the subcatchment will be updated without needing to type the outlet_id on its attribute table.

Use copy-paste on non-visual objects and dscenario demand dialogs

Now, it is possible to manage objects by copy-paste them.

Refresh EPA world view if networkmode changed

Having the EPA World button activated, the elements shown can change according to the selected network mode in Go2Epa Options dialog. The user can choose whether to show arcs and nodes (BASIC NETWORK) or additionally show connecs (NETWORK & CONNECS).

Add selector period strategy on selector

A new selector has been added to table config_form_tabs in order to filter data by periods of time. It can be found in table config_form_tabs by searching for "selector_basic_" in column "formname". By default, it is not enabled. To do so, it is necessary to rename the parameter "selector_basic_" to "selector_basic" in table config_form_tabs. Then, the tab Period will appear in the Selector.

New checks on EPA data consistency

New checks according to EPA rules have been done. These are the following:

  • Check if outlet_id exists in table view v_edit_inp_junction (in case the outlet is a junction) or in v_edit_inp_subc2outlet (in case the outlet is a subcatchment)

  • Check null values on columns "weir_type", "cd", geom1", "geom2", offsetval" from table inp_weir

  • Check null values on columns "ori_type", "geom1" and "offsetval" from table inp_orifice

ADMIN

Add Import DWF to Import CSV

Now, it is possible to import DWF data through the Import CSV Button.

Refactor of the creation of projects (empty, inventory, full and Import inp)

A huge refactor has been made for the process of creating a new Giswater schema. Now, the SQL files of updates to 3.5 have been refactored into a database backup file which is being restored during the process of creating an schema. This refactor is aimed to enhance velocity and simplify the code.

Add 'Show inactive' checkbox on managers

The checkbox "Show Inactive" has been added to all manager buttons in order to standardize their structure.

Enable the possibility to delete all selected rows in managers

Now, it is possible to select multiple rows from a managers' button and delete them.

3.5.039

INDEX

  • OM

    • Mapzones - Return results on temporal layers when running mapzones with commit changes=false

    • Force Arc Divide tool to move mapzones values from arc to inserted node

  • EPA

    • Add nodeinflow for detailed rpt node on UD results

    • Set raingage geometry column not null

  • ADMIN/SYSTEM

    • Massive performance improvement of get_feature_by_id

    • Improve handling of config files

    • Change querytext for *_type columns on v_edit_element form. Don't use featurecat_id

OM

Mapzones - Return results on temporal layers when running mapzones with commit changes=false

When running mapzones function, you can choose if you want to commit changes or not.

  • Commit changes=true: Mapzone polygonal geometry is recalculated and mapzone id of related features is updated.

  • Commit changes=false: None of thes changes are done. Results are stored on auxiliar layers so you can view it before and only apply when you are sure that the results are correct.

Since this version, when commit changes=false, this auxiliar layers are automatically loaded to QGIS project via Temporal Layers. This way is much easier to view the results, without the necessity to perform an advanced query as it was before.

Loaded layers are only related to:

  • Resultant arcs, categorized by mapzone.

  • Resultant polygons, categorized by mapzone.

Node and connec results aren't loaded.

Force Arc Divide tool to move mapzones values from arc to inserted node

When using the Arc Divide tool, the inserted node will now capture the mapzone values of the divided arc. Specifically the updated values will be:

  • Sector_id

  • Dma_id

  • Presszone_id (only for WS)

  • Dqa_id (only for WS)

  • Minsector (only for WS)

EPA

Add nodeinflow for detailed rpt node on UD results

Inflow column has been added to rpt_node table. It will be filled with data after running a full SWMM simulation.

Set raingage geometry column not null

Geometry of Raingage feature (only for UD projects) is now mandatory, since having NULL value on this column lead to simulation errors.

ADMIN/SYSTEM

Massive performance improvement of get_feature_by_id

With this improvement, now tools that search for features should be faster than before.

Improve handling of config files

User config files (stored on ...\user\AppData\Roaming\Giswater\3.5\core\config), which have been reported to generate some problems, now have been improved avoiding its crash on all the supposed cases.

Change querytext for *_type columns on v_edit_element form. Don't use featurecat_id

Config_form_fields querytext for function, category, fluid and location_type had a mistake, because there was a filter for featurecat_id (following the standard for other features), but it doesn't apply for v_edit_element.

This filter has been removed and now the query works properly.

3.5.040

INVENTORY

Enhance setclosestaddress function allowing to insersect the results with a polygon layer

A new widget has been added to the function which allows the user to specify a polygon layer (i. e. buildings layer). If specified, the address will be captured only for those elements of the input layer which intersect the polygon layer.

This can be configured on table config_toolbox. This table contains the configuration for every function in Giswater, which is stored in 3 main columns: functionparams, inputparams and active. In this case, the target function is called Get address values from closest street number and the column used for customization is called inputparams. This column consists of a json string that defines the widgets for every function in Giswater. The parameters that enable the user to customize the widget are the ones that belong to

"widgetname": "insertsectPolygonLayer"

which are "comboIds" and "comboNames".

The values for "comboIds" must be the name or names of the polygon layers, while the values for "comboNames" must be the name of user's choice according to the polygon layer name specified in "comboIds". There must be a value called "NONE" in both "comboIds" and "comboNames" in order to keep the functionality of the widget.

The user can add or remove as many comboIds and comboNames as wanted inside the widget intersectPolygonLayer, as long as json's syntax rules are followed.

ADMIN/SYSTEM

Bug fix: saving project sometimes crashed qgis

This issue has been solved and now it is very unlikely to happen, thus enhancing user experience.

3.5.038

INVENTORY

Correct management of inventory field on edit_triggers

Inventory field on node, arc, connec and gully tables wasn't correctly managed on INSERT. Now this issue has been fixed, modifying edit triggers and use inventory field value on the right way.

EPA

Add user variables to auto load or not go2epa selector layers

A new variable allow users to decide if Result layers and Compare Result layers will be loaded when using Go2epa Selector.

It can be configured using the Advanced Menu on Giswater plugin.

  • ws_load_result_layers: If True, when using Go2epa Selector, if result layers are not loaded, they will be automatically loaded. Otherwise nothing will happen.

  • ws_load_compare_layers: If True, when using Go2epa Selector with compare option, if result compare layers are not loaded, they will be automatically loaded. Otherwise nothing will happen.

ADMIN/SYSTEM

Enhance trg_config_control adding element_type to allowed values on featurecat_id field

Until this version was not possible to configure any value from element_type table on featurecat_id field, because it was controlled by trg_config_control and only manage cat_feature table.

Now trg_config_control have been improved and allow also to configure values from element_type on featurecat_id field. It is only related to featurecat_id field on these tables:

  • man_type_category

  • man_type_fluid

  • man_type_function

  • man_type_location

  • cat_brand

  • cat_brand_model

Enhance performance for check projects

Some processes executed by check project have been imporved to enhance its performance.

3.6.002

EPA

Add styles for EPA world for parent layers

From now on, the layers that figure out in EPA World (EPA Point of View Button that recently exists) have different symbologies and colours compared to their parent layers. Therefore, the difference between both layouts is more noticeable.

This image shows the network from the point of view of inventory:

With the EPA World button activated, the network can be seen with a different symbology (see image below). This fact makes it easier for the user to notice the difference between the inventory elements and the EPA elements.

Add field is_operative to v_edit_tables

The field is_operative has been added to v_edit_tables. This field comes from the table value_state_type, which shows the operativity for each state type. By adding this field to the v_edit_tables, the user can see the operativity for all elements displayed in the v_edit_tables. Those elements with an is_operative = FALSE will not be exported to EPA. Only the elements with an is_operative TRUE are going to be exported to EPA.

Use strategy of v_sector_node for inp view

This strategy has been developed to enhance the display of all network elements specially when there are elements belonging to other sectors which are located in the boundary of one with another.

Having one selected sector, when a node was connected to 2 arcs with different sector, one of the arcs looked like it was not accomplishing the topographic rules of Giswater, as its ending node belonged to another sector and eventually it did not appeared due to the fact that only one sector was selected.

To solve this, a new table view has been created with the name of v_sector_node. This table view shows the first connected node from the different sector which is connected to the arc that belongs to the current selected sector. This allows the user to see a well-connected network despite having boundary elements that belong to any non-selected sectors. It is a visual enhancement in order to see the network of a sector in a much better way. Its use may be remarkable for storages (UD) and tanks (WS).

3.5.029

INDEX

  • INVENTORY

    • Bug fix

    • New toolbox function to check T candidate nodes with wrong topology

INVENTORY

Bug fix

Some bugs, found in the previous version, have been fixed.

New toolbox function to check T candidate nodes with wrong topology

A new function has been added to Giswater's toolbox to check T candidate nodes. This mean nodes which appareantly have 3 arcs connected, but topology is incorrect and only one of this 3 really connects. Usually the problem is one arc which is not broken by the node.

This kind of problem is common when a new network is migrated from other sources and could produce sever errors while executing hydraulic models because of this lack of conexion.

3.5.028

INDEX

  • INVENTORY

    • Highlight connecs that will be disconnected on feature end process

    • Use hemisphere change to rotate node 180º

  • OM

    • New functions to import scada values & hydrometer values (focused on waterbalance)

  • EPA

    • 3.5.028

  • SYSTEM

    • Add commitChanges parameter in mapzones function to allow running it without change feature table values

INVENTORY

Highlight connecs that will be disconnected on feature end process

When some arc has to be downgraded but it has connections, a form appear showing a list of these connecs. Now, when a row of this list is selected, the connec will be highlighted in the map canvas.

Use hemisphere change to rotate node 180º

Having 'Disable node rotation on update' variable of Giswater's Toolbox in FALSE, now is possible to add 180º to the rotation value of any node. It's also necessary that the node have TRUE value on choose_hemisphere column from cat_feature_node table.

To do so, you just need to click Rotation button on the top of the custom form and then another click on the map canvas, near the node.

This process will add 180º to the rotation value and also will calculate hemisphere value, as it did before.

You will only see results in the canvas if the symbol of the layer is managed by 'rotation' field.

OM

New functions to import scada values & hydrometer values (focused on waterbalance)

There are 2 new functions on Import CSV tool to import data for scada and hydrometer values.

  1. Import scada values inputs:

    • node_id - id of the scada feature

    • value_date - date of the value

    • value - water volume

  2. Import hydrometer values inputs:

    • hydrometer_id - id of the hydrometer

    • cat_period_id - period related to ext_cat_period table

    • value - water volume

    • value_date - date of the value

These imports will fill waterbalances tables, which data is mandatory if you want to use waterbalances processes and reports.

EPA

Force reservoirs/tanks on inlets when Go2EPA for WS

When running Go2EPA on WS project, all features with epa_type = INLET will be transformed to:

  • RESERVOIR - when there are as many pipes as you want but all are related to same sector.

  • TANK - when there are as many pipes as you want and there are at least two sectors involved.

SYSTEM

Add commitChanges parameter in mapzones function to allow running it without change feature table values

A new variable has been added to Mapzones analysis process. In the form of the function, now is possible if you want to commit changes or not.

Unselecting this checkbox will also run the same process but not changing inventory values. It can be very useful to run a 'test' process.

To see the results you can query using this values fid values and then symbolize using the filled column:

SECTOR:130

DQA:144

DMA:145

PRESSZONE:146

STATICPRESSURE:147

SELECT * FROM anl_arc WHERE fid = (XX) AND cur_user=current_user;
SELECT * FROM anl_connec WHERE fid = (XX) AND cur_user=current_user;

3.5.036

INDEX

  • INVENTORY

    • Correctly manage connects with assigned arc_id but without graphic link on different processes

    • Keep selector scroll when checking a new item

    • New columns on minsector table

  • EPA

    • Add new source pattern from inp_connec when new scenario is created

    • EPA result manager: "Set corporate" button is now "Toggle corporate"

  • MASTER

    • Refactor strategy of execute psector. New traceability tables for executed and canceled psectors

INVENTORY

Correctly manage connects with assigned arc_id but without graphic link on different processes

Some edition processes trigger changes on connects and its links. In this relase, connects (connec and gully) with assigned arc_id but without graphic link connection have been identified and correctly managed on every edition process with affectation on them.

The goal of this change is to avoid incorrect or missed arc_id assignations and automatize reconnection to the proper arc.

On detail, the processes which have been evaluated and repaired are:

  • Insert PLANIFIED node over OPERATIVE node.

  • Arc divide.

  • Arc fusion.

  • Feature replace PLANIFIED.

Keep selector scroll when checking a new item

Util this release, if the list of items on the selector were so large that scroll down was needed, the check of a new item returns the position to the top.

Now it has been reparied and the position on the selector is keeped when checking a new item.

New columns on minsector table

Four new columns have been added to minsector table to enhance its stats. It will be useful to summarize information of this map zone.

New fields are:

  • num_border: Number of border features separating one minsector from another.

  • num_connec: Number of connecs within the minsector.

  • num_hydro: Number of hydrometers within the minsector.

  • length: Total length of the newtwork within the minsector.

EPA

Add new source pattern from inp_connec when new scenario is created

On Giswater's Toolbox process of Create Demand Dscenario from CRM, the possibility of creating a new Scenario using the Connec - Patterns has been added. Values from v_edit_inp_connec table will be used to create this new Scenario.

EPA result manager: "Set corporate" button is now "Toggle corporate"

The EPA result manager button functionality has been changed. Now is possible to set different results as corporative, because they can be related to different exploitations. Until now only one result could be corporate.

Set corporate button toggle the value of iscorporate on rpt_cat_result table. On corporate tables (node_add, arc_add, connec_add), result values are inserted or deleted. If feature id's collide, the inserted one will update old one.

MASTER

Refactor strategy of execute psector. New traceability tables for executed and canceled psectors

Psector execute modes have been changed with the goal of making the manage of executed features easier, without having trouble between operative and planified topologies.

In order to achieve this, now, when executing or canceling psectors, its related features will be moved to traceability tables where consulting data will be clear and easy. Psector manager will still keep the alphanumerical basic data and the poligonal geometry around the existing features, but there will be no relations with inventory features.

New traceability tables are:

  • audit_psector_arc_traceability

  • audit_psector_node_traceability

  • audit_psector_connec_traceability

  • audit_psector_gully_traceability

These tables will contain all the information stored on plan_psector_x_* tables plus the executed action (EXECUTE or CANCEL) plus all the information on inventroy table (arc, node, connec, gully).

As a result of the refactor there are 5 different psector states, with its related actions:

  • PLANNED - No action

  • ON GOING - No action

  • EXECUTED (Save Trace) - Related features will be inserted to traceability tables with Execute psector action.

  • EXECUTED (Set OPERATIVE and Save Trace) - The elements that were planified will become OPERATIVE state. The elements that were planned to be removed from the psector will become OBSOLETE state. In order to also mantain traceability, related features will be inserted to traceability tables with Execute psector action.

  • CANCELED (Save Trace) - Realted features will be inserted to traceability tables with Cancel psector action.

Traceability tables are ready to load onto QGIS project using Giswater's Load Layers button. By default, a useful symbology will be setted to establish a visual difference between planified features, obsolete features and affected features. Of course this simbology can be modified by user to set a more accurate style according to the needs.

Traceability tables: example of executed psector with different symbology for planified features and affected features.

3.5.033

INDEX

INVENTORY

Make Element layer identifiable usign Giswater Info

Giswater's info over an Element will return the same form used in Add Element tool. In this form is possible to view Element information and its Relations with other network elements such as nodes, arcs, connecs...

The same form will be shown when using Search tool form Elements. In earlier versions a basic form was shown in this process, where Relations were not possible to visualize.

Manage this form allow users to consult Element's information faster and easily.

New fields on Meter table

Three new fields have been added to man_meter table so they are now available on Meter type elements form.

  • real_press_max: sets the maximum real pressure on that meter getting it from the device.

  • real_press_min: sets the minimum real pressure on that meter getting it from the device.

  • real_press_avg: sets the average real pressure on that meter getting it from the device.

Difference between these new values and the ones related to pressure that already exist on node:

  • New ones: they are related to real values from an existing device on that feature.

  • Existing ones: calculated or functional values used on hydraulic modelization which cannot be real.

New function on Toolbox to capture address from closest street number

A new function have been added to Giswater's Toolbox. It is useful to set address to punctual network elements (node, connec, gully) getting it from its closest street number.

There are some parameters to be configured before running this process:

  • Input layer: NODE or CONNEC.

  • Selection type: Selected features or All features.

  • Type: To choose whether update ALL NODES, ALL CONNECS or just one feature type.

  • Field to update: To choose if you want to update POSTNUMBER or POSTCOMPLEMENT field. The most usual is postnumber, but if address number is not numeric, then you will need to update postcomplement.

  • Search buffer: Maximum distance to look for and address from the point.

  • Elements to update: To choose whether update ALL ELEMENTS or just the ones with STREETAXIS, POSTNUMBER or POSTCOMPLEMENT with NULL value.

Automatic calcul of sander depth (UD)

A new function allow the automatic calcul of sander depth for Manhole, Wjump and Chamber features.

This process is controlled using a variable stored in config_param_system table named edit_node_automatic_sander. If TRUE, the calcul will be done every time INSERT or UPDATE is done on specific features.

Calculation is done setting the difference between sys_ymax and sys_y1 of both node and related downstream arc.

The result will be stored and updated on sander_depth field of node.

OM

New system parameter to automatically set reviewed data as finished

When using Review tables, you need to set field_checked as TRUE to send the revision to audit_review tables.

Now there is a new variable stored in config_param_system table named edit_review_auto_field_checked that, if TRUE, will automatically set field_checked as TRUE with any date modification.

This will prevent field users from forgetting to set this value or simply make it easier to use by automating the process.

New review status: Only observations added, no data modification

Until now, there were 3 different status to establish the kind of changes that were done on the review. They were automatically set to review_status_id on audit tables. Now there is a new one:

  1. New element.

  2. There are changes on the geometry and maybe changes on the data.

  3. There are only changes on the data.

  4. (New!) There are no changes on the data or they are beneath the tolerance value but a there is a comment related to the review.

The comment when review_status_id=4 will be showed on review_obs field on audit tables.

3.5.035

INDEX

INVENTORY

Add new field expl_id2 for all inventory features

New field 'expl_id2' have been added to all invetory tables (node, arc, connec, gully and link). The goal of this new field is to allow visualization of features that needed to be managed by two different exploitations.

For example, having exploitation A and B, if some parts of B are managed by someone who only have access to A, just set expl_id2 = A and these features will also be visible when only A is selected.

By default, expl_id2 is hidden on forms. Just set hidden=false on config_form_fields to show it on forms.

New field wjoin_type on man_netwjoin (WS)

A new field have been added to man_netwjoin table. Named 'wjoin_type', its complementary to the one that had been added on .

New vdefault on config for workcat_id_plan

A new user variable have been added to Config tool. It manage default value for workcat_id_plan field, which is used to assign a work catalog to planified features.

As it's only recommended to set this field when inserted feature is planified, new default value for workcat_id_plan will only work when state default value = PLANIFIED.

New variable can be found on Inventory layout (Basic tab) of Config.

EPA

Add Print button on Non Visual Object to export SHAPES images

A Print button have been added to Non Visual Object manager (only on Curves tab). It allows to export all curves with curve_type = SHAPE from the table and convert it to png.

3.5.031

INDEX

INVENTORY

Deep refactor on links to enhance usability and performance

Links are now Giswater advanced objects

They have now similar capabilities as node, arc and connec does.

  • Use Giswater info button to get the form and edit data

  • Insert new link using Edit toolbar Insert arc tool (it's still possible to insert using QGIS regular tools)

Advanced use of links on planified state

There are several ways to manage connections and their links when they are in a planified state.

For each connection with State=1 in the psector, a new link will be created in the database. There are two possible scenarios:

  • Connection in Plannified state - It will have 1 link in Plannified state.

  • Connection in In Service state - It will have 2 links, 1 in In Service state (which will be displayed without the psector), 1 in the Planified state (which will be displayed with the psector).

This second case serves to change the way of connection using the psector. To do it you have to:

  1. Add the desired connections to the psector Relations.

  2. Change the geometry of the link or its arc_id. It can be done in several ways:

    1. Manually edit the link with the usual QGIS tools. In case the connection point is in a different section, the arc_id will be changed automatically.

    2. Use the Set arc_id tool from the connections tab of the psector. On the selected rows you can establish which section you want to connect to. The connection point can be established as the closest place of the selected section (Set closest point) or the exact place where the section has been clicked (Set user click).

New fields on review tables

Some new fields have been added to review tables in order to allow revision of more accurate data. New available fields are:

  • Field_date: date of the revision(WS and UD)

  • Steps pp: to indicate the number of polypropylene steps (for manhole UD)

  • Steps fe: to indicate the number of iron steps (for manhole UD)

  • Steps replace: to indicate if some steps needs to be replaced (for manhole UD)

  • Cover: to indicate cover state (for manhole UD)

Improve address search returning values even if writing mismatch

The address search now is capable of returning values even if writing mismatch any value on the street table. It will show similar values.

This is posible using Postgres extension called fuzzystrmatch. It will be automatically installed when the Giswater update is done.

New fields on inventory tables

Some new fields have been added to inventroy tables:

  • om_state: Establish operational state of the element (added for node, arc, connec WS)

  • conserv_state: Establish conservation state of the element (added for node, arc, connec WS)

  • priority: To set priority value of the element (added for connec WS)

  • valve_location: To set where the valve of the connec is located. For example: Garden, Parking, Ditch, Locker... (added for connec WS)

  • valve_type: To set the type of the valve related to a connec. For example: Ball, Gate, Butterfly... (added for connec WS)

  • shutoff_valve: Establish whether the connec has shutoff valve or not (added for connec WS)

  • access_type: Establish how to acces to the element (added for connec, node WS)

  • placement_type: If the element is located within another element, this field can be used to set exactly where it is placed. For example: Register, Facility, Stand... (added for connec, node WS)

  • crmzone_id: Related to which crm zone the connec belongs to (added for connec WS)

  • valve_type: To set the additional type of the valve, unlinked from the catalog (added for valve WS)

  • wjoin_type: To set the additional type of the water join, unlinked from the catalog. For example: Domestic, Industrial, Irrigation, Fire... (added for water join WS)

  • greentap_type: To set the additional type of the greentap, unlinked from the catalog (added for greentap WS)

  • cat_valve: To set the catalog of the valve related to greentap (added for greentap WS)

  • hydrant_type: To set the additional type of the hydrant, unlinked from the catalog (added for hydrant WS)

Allow basic info editable

For those elements of the project that can be clicked using Giswater's info tool and return a basic form, an edition button is now available.

OM

New funcional mapzone for UD: Drainzone

Drainzone is the first functional mapzone to be used on urban drainage projects. It will automatically sectorizate different zones given the OUTFALLS of the network, creating, as a result, the reach of every DRAINZONE.

Configuration is very similar to existing mapzones on WS projects:

  • Set true on config_param_system the variable for utils_graphanalytics_status.

  • Configure a new drainzone for every existing OUTFALL. On table drainzone, set a name, descript, expl_id and graphconfig (unlinke WS mapzones, here it must be only configured the nodeParent key).

Here is an example for graphconfig field (240 is the node_id of and outfall):

Having the correct configuration, you can open Giswater's Toolbox and find the function to run the Mapzones analysis. On WS projects it is located on Master section, but drainzone is considerated an operational process, so it is located on OM section.

As a result of the function:

  • Geometry of every drainzone on the current exploitation is updated (depending on the mapzone constructor method).

  • Field drainzone_id for every node, arc, connec and gully is set to its given drainzone.

If you don't check Commit changes variable, the results won't be automatically applied, giving the chance to firstly consult the results on a temporary table via SQL query. Once you have the desired results, then check Commit changes.

EPA

New function gw_fct_epa2data (WS) that copies results from EPA to data form

Now is possible to get some values of an EPA result and merge them with inventory tables, allowing users to consult these data on the main form of the element. Until now, these values were only available on the EPA tables of the data model.

To do so a new function have to be executed:

It could also be configured to run easily using the Giswater's Toolbox.

The result of the execution will be seen on the form of the elements.

For nodes the available data is related to demand, pression and head.

For arcs the available data is related to flow and velocity.

For connecs the avaiable data is related to pression.

These EPA related data will be stored in new tables of the DB called node_add, arc_add and connec_add. If the function is ran again with another EPA result, the values of these tables will be overwrited.

MASTERPLAN

Allow different execution modes for psector

The capacity of executing a psector were available in lower versions, but there was a variable to decide which execution mode you want to use.

Now all the developed modes have been merged and they are all available without using any variable.

As a result, if the status of the psector is modified, depending on the value that is established, certain changes can be executed automatically.

The available states are the following:

  • PLANNED - For planned psectors. It is the most common as the initial state of a psector.

  • IN PROGRESS - When a psector is running. Your change does not run any automatic processes.

  • EXECUTED - For executed psectors. There are 3 subtypes:

    • Do nothing: It only changes the state but does not execute any automatic process.

    • Obsolete: The elements that were planned will go to the OBSOLETE state but it will be indicated by their type of state that they were previously planned elements. For example, the status type could be PLANNED DONE (status type names are fully configurable).

    • On Service: The elements that were planified will become IN SERVICE state. The elements that were planned to be removed from the psector will become OBSOLETE state. A copy of the psector will be generated to keep track of what you had planned.

  • CANCELED - When a psector is cancelled. The elements that were planned will go to the OBSOLETE state but it will be indicated by their type of state that they were previously planned elements. For example the status type could be PLANNIFIED CANCELED.

Add button "Toggle active" and checkbox "Show inactive" on psector manager form

A new button have been added on the Relations tab of psector form. The aim of the button is to make easier to change the state or the doable value of some relations.

When using psectors in an advanced way, in some occasions it is needed to change the value of these two fields. Using the new button users can select multiple rows and then toggle value of all of them.

3.5.023

INDEX

INVENTORY

Enable info over polygon network layer

There's a new layer for polygons named 'v_polygon'. It works for any of the elements on the network that are able to have double geometry (node, connec, gully). The goal of this new layer is to allow users to use Giswater Info tool on it and return the form of its related feature.

To do so users will need to load this layer in the QGIS project. Then it's as simple as click using Gw Info over the geometry of the polygon and the Giswater form will be shown.

Manage active on addfields

A new trigger function manage the value of active column on sys_addfields table. When active is set to FALSE, this addfield will be deleted from the related form and view. Otherwise, if active is set to TRUE, the addfields will return to the form and view automatically.

Giswater reports by role

Config_report table now have a new column sys_role to group reports. Using this column the configured reports will be shown in the toolbox within different subgroups, the same way Processes have.

Improve Add Giswater Layers button

Add Giswater Layers button has been improved:

  • Bug fix on 3rd group layers which doesn't load properly.

  • Improved reliability when some layers are configured but doesn't exist on database.

Bug fix on autoupdate widgets

A bug has been fixed regarding incorrect update when some values with autoupdate configuration were used (those related to urban drainage conduit sections and measurements).

O&M

Allow additional nodes on Profile tool

A new button allows to select some additional nodes during the generation of a profile, because sometimes the end node can be reached by different paths from the start node.

The use of the button is simple. First you have to define the start/end node using the 'Set nodes' button.

Once you have the selection of proposed arcs for the profile, the 'Add additional point' button will turn on. At this moment you can click this button and then select which node has to be used as midpoint for this profile. After the click on node, profile will be recalculated using this new node.

More than one node can be added clicking as many times as necesary on 'Add additonal point' button.

EPA

Import SWMM could work with >50 m/s velocities

A new variable allow users to select if they want to transform velocity results faster than 50 m/s to just 50. Only with this configuration is possible to run the complete import/export of the RPT file when having some values >50, because Giswater cannot manage non numeric '>50' value returned by SWMM.

To configure it, open the Advanced Menu of Giswater and configure as True the variable force_import_velocity_higher_50ms found on btn_go2epa.

3.5.026

INDEX

INVENTORY

Allow users to input init/end nodes in arc forms when they are NULL

When somehow the value of node_1 or node_2 on arcs is NULL, users are now capable of just write down the node_id in the custom form widget and the arc will be reconnected to such node and topology recovered.

Check redundant values for elevation fields (UD)

There are three main columns on UD schemas to manage elevation data:

  • top_elev

  • ymax

  • elevation

Even they are all editable, it's mandatory to only fill two of them, otherwise values will be redundant. In this version this redundancy begin to be controlled, in two steps:

System variable to control values on forms

A new variable edit_check_redundance_y_topelev_elev have been added to config_param_system table. If true, node and arc forms will show a warning message every time a redundant value appears (it will also show warning for existing values even the form is not in editing mode).

New parameter on check project

A new parameter related to redundant values have been added to check project (and OM check data). Every time these processes are executed redundant values will be checked, returning if there are some or not.

Allow hyperlinks in custom form to be editable

In this version, widgets configured as hyperlinks in element's custom form are editable. This is only possible when form is in edition, otherwise, the hyperlink will work as always, redirecting to the URL on click.

This propery isn't configured by default. To allow the hyperlink edition, config_form_fields table must be properly configured: column 'iseditable' must be TRUE for the desired formname and columnname.

Manage static pressure automatically

When inserting a new node or connec, the value for static pressure will be automatically calculated. This will only happen when:

  • Elevation value of the element is already filled or user fill it before Accept.

  • Presszone related to the element is filled and its 'head' field on presszone table has value.

The result value of static pressure is: presszone.head - elevation.

This value will always be recalculated when presszone of the element change.

New default value for ymax on UD

A new default value is now available on Configuration tool of Giswater to manage a default value for ymax on nodes. This value will appear automatically on node forms when inserting a new one. As always, this value is manually modificable inside the form.

New default value for users to search municipality

To search in the Address tab, now is possible to set a default value for the first widget, Municipality. This can be useful on networks distributed within many different municipalities, because some users may need to search always in the same municipality and they can configure this value to be already defined.

It needs to be set on the Configuration tool of Giswater, in the Basic first tab.

OM

Recalculate mincut when execute start process

Now is possible to enable the automatic recalculation of a mincut when click the Start process button.

The resulting mincut could be different if the affected network have suffered changes from the moment that mincut was planified. For example:

  • Some valves have been closed

  • Some arcs have been changed

  • Some connecs have been added or removed

This recalculation is not enabled by default. To use it, redoOnStart variable from Mincut settings on Configuration tool of Giswater needs to be set 'true'. It's also possible to configure the number of past days from the mincut planification to execute this automatic recalculation or not.

New columns on node and connec mincut result

Two columns have been added on node and connec mincut result views, to provide some additional information when a mincut is calculated. These columns are:

  • Mincut result node: node_type (type of node affected by the mincut).

  • Mincut result connec: customer_code (code used to relate connecs to other DB).

EPA

1D/2D coupled model in combination with SWMM-IBER

This feature have been developed according the agreement of Giswater Association with BarcelonaTech University in order to connect Giswater-SWMM with IBER enabling a real drainage coupled model 1D/2D. The goal is to generate a gully CSV file at th same time as the INP file is generated. This CSV file contains all the information that IBER needs to work with 1D/2D coupled model.

Many improvement have been done in this release to work with the 1D/2D coupled model. It is possible to emphasize:

  • New parameters have been added on gis-side for gullies as well as groove dimensions or grate_location.

  • New two epa-type objects have been defined on epa-side: gully and netgully with all parameteres that IBER needs to work with 1D/2D coupled model as well as outlet_type, method, a,b weir_cd o orifice_cd.

  • New widget on go2epa options dialog have been create in order to control this exportation network geometgry generator with two options (1D-SWMM / 1D-2D SWMM-IBER)

In case of the new object epa_type: gullies, only will be exported on the csv file used by IBER to load gully. SWMM file will not have it.

In case of the new object epa_type: netgullies, as well as it will be exported as JUNCTION on inp file, will be also exported on the CSV file as another gully.

Enhance valve management for ws go2epa exportation

The valve management on ws inp export files have been simplified. In fact, widget have disappeared. The status on gis-side acts as primary status (only open or closed) and the status of epa-side acts as secondary status which it means that when the gis-side is open the status of valve will be the status defined on epa-tables.

At the same time the mincut_result strategy have been removed from this side and have been added on the dscenario manager as well as one scenario more.

Enable work with CRM values also on nodes (netwjoin)

Until now, CRM values could only be related to connec features. In this version, the possibility to establish CRM values related to a Netwjoin -a specific kind of node which acts like a connec but breaking the network- have been enabled.

Netwjoin table has customer_code column, which will relate this node to hydrometer values and so is possible to create Dscenario demands using both connecs and netwjoins.

Improvements on Dscenario manager

Among some bug fix, some improvements have been done on the dscenario manager button. It is possible to emphasize:

  • New button in dscenario to add layers to ToC easily. By click on this button, new layer will appear on ToC in order to make easy the massive edition of rows by using the native attribute table editor of QGIS.

  • Enable dscenario strategy for controls and rules. On this version it is possible to create also scenarios for controls and rules, enabling new borders on the dscenario strategy.

  • New actions and buttons. Duplicate scenario button and create dscenario valve from mincut action have been added on this version.

New system parameter to update inventory tables when change EPA values

A new parameter have been added to system configuration. It's goal is to automatically update values on inventory tables whenever values are changed on epa tables (inp).

To use it, status on parameter EPA auto update inventory tables on the Configuration tool of Giswater must be 'true'. Then, it's also mandatory to configure the SQL query which will be executed if changes are made in the different available sourceTables. For example (the alias on the query are mandatory):

UPDATE man_tank t SET hmax=maxlevel FROM inp_tank s

UPDATE man_valve t SET pression_exit=pressure FROM inp_valve s

UPDATE man_pump t SET power=powerFROM inp_pump s

It's important to know that columns from both tables are deeply related, which just happen in some cases.

INVENTORY
Make Element layer identifiable usign Giswater Info
New fields on Meter table
New function on Toolbox to capture address from closest street number
Automatic calcul of sander depth (UD)
OM
New system parameter to automatically set reviewed data as finished
New review status: Only observations added, no data modification
INVENTORY
Add new field expl_id2 for all inventory features
New field wjoin_type on man_netwjoin (WS)
New vdefault on config for workcat_id_plan
EPA
Add Print button on Non Visual Object to export SHAPES images
New fields on inventory tables
{"use":[{"nodeParent":"240"}], "ignore":[], "forceClosed":[]}
SELECT gw_fct_epa2data($${"client":{"device":4, "infoType":1, "lang":"ES", "epsg":25831}, "data":{"resultId":"your_result_name_here"}}$$);
INVENTORY
Deep refactor on links to enhance usability and performance
New fields on review tables
Improve address search returning values even if writing mismatch
New fields on inventory tables
Allow basic info editable
OM
New funcional mapzone for UD: Drainzone
EPA
New function gw_fct_epa2data (WS) that copies results from EPA to data form
MASTERPLAN
Allow different execution modes for psector
Add button "Toggle active" and checkbox "Show inactive" on psector manager form
INVENTORY
Enable info over polygon network layer
Manage active on addfields
Giswater reports by role
Improve Add Giswater Layers button
Bug fix on autoupdate widgets
O&M
Allow additional nodes on Profile tool
EPA
Import SWMM could work with >50 m/s velocities
INVENTORY
Allow users to input init/end nodes in arc forms when they are NULL
Check redundant values for elevation fields (UD)
Allow hyperlinks in custom form to be editable
Manage static pressure automatically
New default value for ymax on UD
New default value for users to search municipality
OM
Recalculate mincut when execute start process
New columns on node and connec mincut result
EPA
3.5.026
Enhance valve management for ws go2epa exportation
Enable work with CRM values also on nodes (netwjoin)
Improvements on Dscenario manager
New system parameter to update inventory tables when change EPA values

3.5.032

INVENTORY

Bug fix

Some bugs, found in the previous version, have been fixed.

Import

002 806e613a32d84ae8a726f5c5c54da1c0

3.6.002

Creado: August 25, 2023 1:12 PM Estado: In progress

  • 3.6.002

    EPA

titulo 1 (EPA, OM)

Subtitulo 1 - add function

texto texto texto lorem lorem lorem loremipsum

3.5.025

INDEX

  • EPA

    • New button: Non-Visual object manager

    • New triggers to edit data related to hydrology and dwf_scenario (UD)

  • SYSTEM

    • New function to import configuration of cat features from csv files

EPA

New button: Non-Visual object manager

The Non-Visual objects are related to EPANET, they have no geometry, but have information that you can give to different elements and will run a process based on that. Until now, they were managed from the catalogs but with this new button, they are better managed. Also is important to say that they are equally important as the visual objects because they have data that is fundamental to the hydraulic modeling too.

This version has a new button associated to the Non-Visual Objects. Which are:

  • Curves

  • Patterns

  • Controls

  • Rules

Non-Visual object manager

It makes possible to manage all of the Non-Visual objects. You can:

  • Create

  • Duplicate

  • Delete

  • Filter

To create a new Non Visual Object, click the Create button at the moment you are situated on the tab of the object you want to create.

Curves and patterns could be assigned to an element that you have in the inventory.

In the other hand, controls and rules can be attributed to the different sectors that the project has.

New triggers to edit data related to hydrology and dwf_scenario (UD)

Two new triggers have been added to the urban drainage schemas to allow users the direct modification of data using the views v_edit_cat_hydrology and v_edit_cat_dwf_scenario.

Using these new triggers it's not necessary to edit hydrology and dwf_scenario data using the raw tables (cat_hydrology and cat_dwf_scenario), which is more inconfortable.

SYSTEM

New function to import configuration of cat features from csv files

Some new functions have been added to Import CSV tool in order to make easier the process of fill these tables:

  • v_edit_cat_feature_arc

  • v_edit_cat_feature_node

  • v_edit_cat_feature_connec

  • v_edit_cat_feature_gully

The csv file must contain the same columns and order as these tables have.

3.5.022

INDEX

  • INVENTORY

    • Add Open/Close valve quick access

    • Delete PLANIFIED state on State Selector

    • Add QML style to Add Giswater Layers tool

    • New report: Water consumption by period and DMA

    • Enable the possibility to create a custom mapzone constructor

    • New rule to control 0 and -1 values on mapzones

    • Add possibility of using Macrosector Selector

    • Manage rasters and bug fix on layers with more than one field as Primary Key on Add Layers tool

  • O&M

    • Mincut Hydrometer filters are now customizable

  • EPA

    • New button Dscenario Manager

    • Timeseries and patterns added to UD

    • Curves, Patterns and Timeseries filtered by exploitation

    • New tables to define LID controls

  • MASTERPLAN

    • Add info box in Psector Manager

    • Manage the duration of the rubberband around one psector

INVENTORY

Add Open/Close valve quick access

Now is possible to open or close a valve with no need of open its form. A new access is provided when right-clicking the valve using Giswater Info tool. If the valve is open, the tool will close it. Otherwise, the tool will open it.

Delete PLANIFIED state on State Selector

Until now, State Selector has displayed the three diferent states of Giswater. Now only OBSOLETE and OPERATIVE are displayed. To show PLANIFIED network is mandatory to use Psector Selector, where all the complexity about planified network is used.

To allow this usability to every user, Psector Selector now is visible for every role of Giswater. Before this versions Psector Selector was only displayed for role_master or role_admin users.

Add QML style to Add Giswater Layers tool

When adding new layers using Add Giswater Layers tool, these will be loaded using a QML style defined in the DB.

The default value of these styles is the same that is used in QGIS templates provided by Giswater.

These values are defined in sys_style table. If you want to customize the values, it's possible to modify stylevalue field. You need to previously save the QML style of the layer you want to change and then update this field with all the text of the QML file where idval = the name of the layer.

Obiously this QML style has to had logical relation with the layer (fields used to symbolize or geometry type).

New report: Water consumption by period and DMA

A new default report is provided on the Report section of Giswater's Toolbox, returning information about water consumption sumed by DMA and period. Also these default filters (period and DMA) are available to enhance the usability of the tool.

Enable the possibility to create a custom mapzone constructor

It enables the possibility to the users to create a new customized method to generate the geometry when the dynamic mapzone algorithm is triggered.

As you may know, this functionality is available on Giswater's Toolbox. To configure this new method there are two main things to do:

  • Configure geometry value with a query on utils_grafanalytics_custom_geometry_constructor parameter of config_param_system table. A default example is provided.

  • Configure a new comboId=5 and a new comboName on the inputparams from table config_toolbox where id=2768 (Mapzones analysis)

One useful example is to draw the mapzone merging some CRM polygonal values. It will allow you to clearly visualize which mapzone is related to every CRM zone.

New rule to control 0 and -1 values on mapzones

Every functional mapzone (https://github.com/Giswater/giswater_dbmodel/wiki/Functional-mapzones-basics) need to have two values that its dynamic algorithm needs to run properly. These values are always id's 0 and -1.

A new rule has been added to avoid the elimination of these values, because if it happens then dynamic zonification crashes.

Add possibility of using Macrosector Selector

Giswater Hydraulic Sectors can be related to a bigger Macrosector, which is an aggregation of different Sectors.

To manage its visualization easily, now is possible to use the Macrosector Selector. It will allow the user to choose which Macrosector wants to visualize and, automatically, all the related sectors (the ones with selected macrosector_id value) will be also selected on Sector Selector.

The configuration must be done enabling (isenabled=TRUE) the parameter basic_selector_tab_macrosector on config_param_system table. It's also possible to change the order of the selector on config_form_tabs table, orderby column.

Manage rasters and bug fix on layers with more than one field as Primary Key on Add Layers tool

Now raster layers, like raster DEM layer on Giswater sample, are ready to load using Add Layers tool.

A bug has been fixed on loading layers with more than one field used as primary key.

O&M

Mincut Hydrometer filters are now customizable

Until now, to do a mincut only related to hydrometers, users have to search them using filter by connec customer code and hydrometer customer code. A new variable allows to configure which values will be used as filters to search the hydrometers.

Using om_mincut_hydrometer_filter parameter of config_param_system table, user could define field1 (from v_edit_connec table) and field2 (from v_rtc_hydrometer table). It's also possible to define the labels to show in the form (label1, label2).

EPA

New button Dscenario Manager

A new button has been added in the EPA toolbar to manage Demand Scenarios . All the existing Dscenarios will be available there, showing some of its information.

Besides being a table to consult existing information, this tool allow users to perform some actions:

  • Create new demand from ToC - Create demand dscenarios from CONNEC or JUNCTION.

    It moves demand & pattern data from source to inp_dscenario_demand. Works with epa layers (v_edit_inp_connec or v_edit_inp_junction) which means these layers has to be loaded.

  • Create empty dscenario - Function to create empty dscenario.

  • Create from CRM - Create dscenarios from CRM. This function store values on CONNEC features. When the network geometry generator works with NODE, demands are moved 50% to node_1 and node_2.

  • Create from ToC - Function to create network dscenarios from ToC.

  • Manage values - Manage values of one dscenario catalog (delete or copy from another one).

Selecting one of these values and clicking Execute button a new form will be opened to define final parameters of the action before running it.

Timeseries and patterns added to UD

New views has been added to UD schemas to manage Timeseries and Patterns.

  • v_edit_inp_timeseries

  • v_edit_inp_pattern

Curves, Patterns and Timeseries filtered by exploitation

Tables related to Curves, Patterns and Timeseries are filtered using exploitation instead of sector.

  • inp_curve

  • inp_pattern

  • inp_timeseries (UD only)

It is so because filter by sector is very restrictive and has been proved that one curve, pattern or timeserie can be used in different sectors within the same exploitation.

New tables to define LID controls

Two new tables have been created in the UD schema to manage Low Impact Development (LID) controls. As you may know, LID controls are used to intercept stormwater and control it through detention, infiltration or evapotranspiration. They are available in SWMM 5.1 and now also in Giswater.

  • inp_lid - Catalog of LID controls like BIO-RETENTION, VEGE-SWALE, RAIN-GARDEN, etc.

  • inp_lid_value - To manage different variable values of the lid catalog.

MASTERPLAN

Add info box in Psector Manager

To enhance the visualization of psector data without opening its form, a new info box have been added to Psector Manager .

It'll show the main information of the selected row in the table, making much more easier to read descripting fields of the psector.

Manage the duration of the rubberband around one psector

Giswater draws a rubberband around the psectors when they are opened using Psector Manager or Psector searcher. Now, the duration of this rubberband is customizable by user. To modify this value, open the Advanced Menu on the Giswater Menu, find show_psector_ruberband_duration variable and modify its value. The default value is 5 seconds.

3.5.024

INDEX

  • INVENTORY

    • Add editable views for cat_feature objects

    • Use gully Units field to draw related polygon

    • Orphan node function runs with all kind of nodes (divide or not)

    • Divide Check Project processes related to orphan nodes in OM or EPA

  • O&M

    • New trigger to update modification_date field on Mincut

  • EPA

    • Add waterbalance strategy according IWA standards with om_waterbalance reports, functions, tables and views

  • SYSTEM

    • Add Execution Time to different processes' dialog

    • Add Update button to Workspace Manager and minor improvement on delete

    • Improve reporting tool of Giswater Toolbox

    • New variable added to config_param_system to manage lastupdate field when using dynamic mapzones

INVENTORY

Add editable views for cat_feature objects

New editable views related to cat_feature have been added to Giswater schemas in this version. As you may know, cat_feature tables are where diferent feature types are defined. Then, every catalog have to be related to one of the values of these tables. These tables are editable and you could add some new types if it's necessary.

New views are:

  • v_edit_cat_feature_arc

  • v_edit_cat_feature_node

  • v_edit_cat_feature_connec

  • v_edit_cat_feature_gully (for UD)

They are useful because only editing its values you'll change the data on the necessary 2 tables of the database, using a trigger.

This way there is no need to change common values on cat_feature table and specific values on cat_feature_arc/node/connec/gully as it was before.

QGIS new templates in version 3.5.024 already include these layers on Catalogs group, so they can be edited easily via QGIS.

Use gully Units field to draw related polygon

Length and width of gullies can be configured in their catalog (cat_grate). These values can be used to automatically draw a polygon around the gully if double geometry variable is active.

Now it is also be posible to use Units field of the gully to multiply the length of the polygon, in order to represent on the map where some gullies lay one next to another.

Using this is as simple as fill Units field with the number of adjoining elements and, of course, have previously configured length and width in correspondent catalog and have active value for double geometry variable.

Orphan node function runs with all kind of nodes (divide or not)

Until thise release you need to check wheter you want to search for orphan nodes that divide arcs or not. It was impossible to check both simultanously. Now the toolbox function to check Orphan nodes runs at the same time searching for:

  • Orphan nodes that divide arcs - Isn't node1/node2 for any of the arcs on the project.

  • Orphan nodes that doesn't divide arcs - Doesn't have related arc_id.

Divide Check Project processes related to orphan nodes in OM or EPA

A new process have been added to Giswater's Check Project to check orphan nodes related to OM (explaiend in the previous paragraph). This new process (442) complements the existing one about orphan nodes related to EPA (107).

This way Check Project gets enhanced adding one of the most usual problems that networks can have and was missing in this check.

O&M

New trigger to update modification_date field on Mincut

A new trigger have been added to mincut table to save the value of the modification_date field. The goal of this is to know which day the data of the mincut have been changed. Obiously, if the data have change the same day that this mincut have been created, modification_date won't change.

Only some specific values will trigger this functionality, because it's logical that some other values will always change when mincut is executed⬇️

Affected fields:

work_order

mincut_class

mincut_type

received_date

expl_id

macroexpl_id

muni_id

postcode

streetaxis_id

postnumber

anl_cause

anl_tstamp

anl_user

anl_descript

anl_feature_id

anl_feature_type

anl_the_geom

forecast_start

forecast_end

assigned_to

output

EPA

Add waterbalance strategy according IWA standards with om_waterbalance reports, functions, tables and views

This is a new option in Giswater toolbox to make water balances by exploitation and period according the IWA standards, based mainly on inlet flow rates (system volume input) and water consumption (billed metered consumption). But if there is more information like unbilled authorized consumption, apparent loses or real loses, it would be possible to incorporate them to the balance too.

This function is linked with the DMA calculation and if you needed, you could recalculate them when you run it.

In this process is possible to check different reports from the balance like full water balance, input water by exploitation, Non-Revenue Water (NRW) by exploitation and water consumption. All of them you could filtered by DMA and period.

SYSTEM

Add Execution Time to different processes' dialog

A new widget showing the execution time have been added to some dialogs which execute processes that can last some time. This can be helpful for users to analyse timings and be aware that the process is still running in case that this last for a long period of time.

Add Update button to Workspace Manager and minor improvement on delete

Now is possible to update an existing workspace setting the current configuration. Of course the previous configuration of this updated workspace will be lost.

Additionally, now is also possible to delete the current Workspace, which was not possible so far.

Improve reporting tool of Giswater Toolbox

Some improvements have been done to reporting tool of Giswater Toolbox:

  • Description of the report and executed Query are now seen in the top of the form

  • Now this process is a thread.

  • Manage NULL's that were causing a crash.

New variable added to config_param_system to manage lastupdate field when using dynamic mapzones

A new variable called edit_mapzones_set_lastupdate have been added to config_param_system. It allows user to choose if lastupdate field of arc, node, connec or gully will be updated or not when dynamic mapzones algorithm is executed.

As this is a usual process, it can be interesting to don't update this field every time, as the goal of the field is to save information about last manual update of the data.

Default value of this variable is 'false'.

3.5.020

  • General revision of Check Project

  • Possibility to audit the results of check project

  • Check OM data and Check Grafanalytics only with User Selectors mode

  • Bug fix on connects very close to arcs

  • More precise progress bar

  • Improve management of signals

  • Create QGIS projects using pgService

  • Restrict the use of reserved words as the name of the schema

  • Enhance snapping configuration for externals layers

General revision of Check Project

Harmonize Check OM and Check EPA functions and delete process executed in both functions. Now check project will repport improved information, including fid 106 which check duplicated nodes and the control of missed materials for arcs.

Previously the only way to check duplicated nodes were Giswater Toolbox, but now they will also apear on general check project.

Possibility to audit the results of check project

A new function to check all the exploitations separately and save results into audit table. This way the audit table bring the possibility to extract really valuable information about the health check of the project and how it changes day by day.

Check OM data and Check Grafanalytics only with User Selectors mode

Only enable 'User Selectors' as execution mode on Check OM data and Check grafanalytics from toolbox.

Bug fix on connects very close to arcs

Enhance trg_edit_link to prevent error when one connect find itself as end point, because the link to connect to network is very short.

More precise progress bar

The progress bar when creating a new database schema is now more precise, showing every task and process executed.

Improve management of signals

Improve the management of pyqtSignals by storing them when they get connected, therefore allowing much better control over them in case they get lost/broken.

Create QGIS projects using pgService

If you use a pgService to connect to your PostgreSQL database, now is posible to use Giswater and create a QGIS project from template, the same way as if you use a regular connection with all the connection parameters.

Restrict the use of reserved words as the name of the schema

It's no longer posible to create a schema with the name with a reserved word of the database: as, for, table...

Enhance snapping configuration for external layers

When inserting a new node, arc or connec using Giswater tools, snapping is automatically configurated in these features, but layers from other sources will keep it's snapping configuration.

3.5.021

  • Refactor and enhance Add Layer button

  • Update QGIS templates

  • New columns on sys_fprocess table

  • New function to manage data from migrations

  • Upgrade to EPANET 2.2

  • Upgrade to SWMM 5.1.015

  • Refactor how CRM is used on EPANET

  • New column parent_id for sector table

  • New colum expl_id for EPA catalogs

  • Improve the way of INP file is created

  • Better manage of Undefined sector (0)

  • Enhance usability of dynamic mapzones algorithm

  • Refactor Other Prices tab on psector form

  • Change the pavcat_id column strategy

  • Enhance performance on Plan tab on arc form

  • Drop price columns related to connec and gully catalogs

  • New function gw_fct_setchangefeaturetype

Refactor and enhance Add Layer button

This button, previously only used to load child layers, now allows to load most of the usual layers that Giswater needs.

It's divided in 5 diferent groups. Every one of them also have subgroups where related layers are available to be loaded.

If a layer is already on the ToC, it's checked. To load a new one, just check the box and the layer will be loaded automatically, located in it's related group (only if the name group of the ToC is exactly the same as it is in the button).

Update QGIS templates

Taking advantage of the refactor of Add Layer button, QGIS templates have been updated. Now they have less layers, in order to maximize its performance.

The groups of Admin and Edit have been deleted. The same way, other not relevant layers have also been removed.

In any moment that a layer is needed, you can use the Add Layer button to load it automatically.

The remaining available templates are:

  • Inventory: Layers for Network, Catalogs, Mapzones and Basemap.

  • OM: Layers for Mincut (WS) and Flowtrace (UD) (+ Inventory).

  • EPA: Layers for EPA Catalogs, Hydraulics and EPA Results (+ Inventory + OM).

  • Master: Layers for Psectors and Prices (+ Inventory + OM + EPA)

New columns on sys_fprocess table

Two new columns have been added to this table, which acts as a catalog of every process that Giswater execute to check the state of the project or other functionalities that store resulting information. New columns are:

  • isaudit: To configure which of the processes are auditable or not, related to audit function.

  • fprocess_type: To categorize processes in order to allow a better understaing of the results.

New function to manage data from migrations

To migrate network data from other sources it's necessary to disable some of the configuration variables, in order to allow the insertion of the data even if they have some topological issues.

To make easier the migration process, this new function (gw fct admin manage migra), available on the toolbox, will turn off all these configuration variables at once. This way, the user will be ready to migrate data only by running this function.

Upgrade to EPANET 2.2

Upgrade database and driver in order to make compatible with lastest version of EPANET 2.2. Main changes are related to the possibility to use the demand model PDA (presure driven analysis) as well as the owerflow on tanks, among other capabilities.

Upgrade to SWMM 5.1.015

Upgrade database and driver in order to make compatible with lastest version of EPANET 5.1 (5.1.015). Main changes are new options on dynamic wave as well as new features and options for LIDS analysis, among other capabilities.

Refactor how CRM is used on EPANET

Full refactor of CRM architecture linked with EPANET tables. The main change is that, to use CRM values, now it is mandatory to create a demand scenario before. By doing this, user has a better traceability and more control of the whole workflow.

New column parent_id for sector table

A new column parent_id have been added to sector table. It will be useful to relate some sectors to a parent (on the same sector table), in order to copy the same configuration or permissions of the parent sector.

New column expl_id for EPA catalogs

A new column expl_id have been added to some EPA catalogs in order to manage its related exploitation and filter data using selectors. Affected tables are:

  • rpt_cat_result

  • cat_dscenario

  • cat_hydrology (UD)

  • cat_dwf_scenario (UD)

Improve the way of INP file is created

Improve the generation of inp file creating another column (linked with the description on EPA canvas) with valuable additional information to trace and debug. Mapzones or feature_type, among others, are showed in this new column, by using a space separator.

Better manage of Undefined sector (0)

During the configuration of dynamic sectorization, the use of Undefined sector is usual. Some parts of the network became related to this sector because they aren't well configured yet. To a better manage of this sector and its related network:

  • Undefined sector has been added to the selector_sector

  • Undefined sector is forced to DISABLE on running Go2EPA.

Enhance usability of dynamic mapzones algorithm

A new widget on the sectorization dialog has been added. Here the user can assign to every arc and node a value to not let them be disconnected (sector_id = 0).

Refactor Other Prices tab on psector form

Other prices tab has been improved. Now all the information is displayed in the same tab and the way of Add or Remove additional prices is easier. A more user friendly tool than before.

Change the use of pavcat_id column strategy

Until now to manage the pavament related to the arc was mandatory to fill plan_arc_x_pavement table. In this version pavcat_id has been added to arc table. Now it's possible to relate the pavement directly to the arc, without filling any other table.

The other table will reamain available to manage arcs which have more than one pavement. In this situation, plan_arc_x_pavement will be used the same way as before, assigning a percentage of the arc to every related pavement.

Enhance performance for Plan tab on arc form

Get info plan function has been revised and as a result the performance of Plan tab for arcs has increased. Also, the way how different prices are loaded to this tab has been related to the use of pavcat_id on arc table.

Drop price columns related to connec and gully catalogs

It's very complicated to calculate a cost of a connec or a gully the same way Giswater does for arcs. So, columns related to cost in catalogs of connec and gully have been deleted:

  • cost_ut

  • cost_ml

  • cost_m3

New function gw_fct_setchangefeaturetype

This new function complements the use of the Change Feature tool. Now, Giswater control if the new feature type has the same posible values on function, location, category and fluid type fields. If not, these values won't be copied.

Style managerYouTube

3.5.027

INDEX

  • INVENTORY

    • Display messages in forms instead of the canvas

    • Add node rotation logics on UD projects

    • New variable to customize link field using Google Maps geolocalization

    • Enhance delete feature: allow delete nodes connected to obsolete arcs (bug fix) and show on_service/obsolete arcs on getfeaturerelation

  • OM

    • Allow recalculate a mincut from another point when is planified

    • New toolbox function to find reach of hydrants

  • EPA

    • Show message if curve is invalid

    • Add the_geom on Waterbalance views

  • SYSTEM

    • Add widget to hide querytext in Toolbox reports

    • 3.5.027

INVENTORY

Display messages in forms instead of the canvas

When an error or info message returns from an action in the form of the elements, this message will be shown in the top of the form. Here is much more easy to read compared to the top of the canvas, where it can be hidden or unnoticed.

Add node rotation logics on UD projects

Automatic node rotation logics was only available in WS projects until this version. Now the same logics have been added to UD projects, so automatic rotation for nodes will be calculated if Config tool 'Disable node rotation on update' isn't checked. If checked, this calculation will be disabled.

New variable to customize link field using Google Maps geolocalization

A new variable have been added to enable automatic fill of link data for point elements (node and connec) using Google Maps geolocation.

To enable it you just need to set {"google_maps":true,"fid":false} to edit_custom_link variable on config_param_system table.

With this variable enabled, each time a new node or connec is added, link field will be automatically filled with Google Maps URL to the exact position of the element.

This link can be easily opened by clicking on the path or using the Open link button on the top of the form.

Enhance delete feature: allow delete nodes connected to obsolete arcs (bug fix) and show on_service/obsolete arcs on getfeaturerelation

Delete feature tool have been improved by fixing a bug which doesn't allow users to delete nodes that have relations with obsolete arcs.

Besides, now the tool shows if arcs are on service or obsolete before on Show feature relations.

OM

Allow recalculate a mincut from another point when is planified

Now it's possible to fully recalculate a mincut, even changing it's initial point. Until now it was only possible to recalculate having the same initial point.

To do so it's as simple as open mincut form and use again Automatic Mincut tool to recalculate clicking on another point. Affected network will be updated, but the data already filled will be mantained unless it is changed by user.

New toolbox function to find reach of hydrants

A new function have been added to Giswater's Toolbox. Not only will allow users to calculate the reach to the current hydrant network, but also will help defining new hydrant location.

There are different steps to take into account:

  • Firehose range - Variable length of the fire hose which will be used to calcul. By default 100 meters.

  • Process mode

    • Influence area - Calculates influence area of the current hydrant network.

    • Hydrant proposal - Duplicates firehose range to allow defining location of new hydrants.

  • Use proposed hydrants - If checked, calculation will sum current hydrant network with new proposed hydrants defined in v_edit_anl_hydrant layer. To add new hydrants to this layer is as simple as load it into the project and insert new points on desired places (no data needed).

  • Use selected psector - Takes into account currently selected psectors. If they have hydrants, it's influence area will be calculated.

The result of the process will be shown in temporal layers automatically loaded into ToC.

Notice that this process could be only used if om_streetaxis table on the DB is filled.

The goal of this table is to have the streetaxis information, same as ext_streetaxis table, but divided in every street crossing.

Result of the process using Influence area mode with current hydrant network.

EPA

Show message if curve is invalid

When adding a new curve using Non-Visual object manager and values are invalid, a warning message will be shown to users.

Add the_geom on Waterbalance views

Geometry field have been added to waterbalance related views, so they can be loaded into QGIS projects and visualize waterbalance data using it's dma geometry. Affected views are:

  • v_om_waterbalance

  • v_om_waterbalance_loss

  • v_om_waterbalance_nrw

SYSTEM

Add widget to hide querytext in Toolbox reports

Query used in Toolbox's reports now can be hide or shown using a simple widget.

New variable to manage snapping configuration

A new variable named utils_use_gw_snapping have been added to config_param_system table. If its value is TRUE, Giswater's tools will automatically configure snapping options for network layers each time they are used. Otherwise, if FALSE, Giswater's tools will never change any snapping options, allowing a complete customized configuration in QGIS projects.

Psector remove pipeYouTube
Logo
Logo