QGISRed

Presentation

Welcome to QGISRed. On this page you will find everything you would probably want to know when making contact with this product for the first time. What is it and what are its objectives? How did it come about? What is it for? How can I install it? Who is behind it? I encourage you to visit the following sections of this page to answer all your beginner questions.

If you want to learn more about all the product's capabilities and its current development status, how to use the application, the publications where its foundations are described, or how to contact us to get support or collaborate on this exciting project, visit the other sections of this website. Oh! And you can also register to be permanently informed of new developments.

What is QGISRed

QGISRed is a QGIS plugin designed to facilitate the task of building and analysing hydraulic models of water distribution networks, from the simplest schemes to the level of detail required by Digital Twins.

The plugin is free to use and takes advantage of all the benefits of working in a GIS environment to geo-reference network elements, overlay them on geographic backgrounds, edit graphic and alphanumeric information, visualise information by layers, customise symbology, perform geoprocessing operations, etc.

Unlike other plugins, QGISRed is not a set of isolated tools to facilitate certain tasks, but rather a working platform from which you can build or import the network model, edit its layout, declare the properties of the elements, build a calculation scenario and analyse the results, all from the same environment. In this way QGISRed can emulate all the capabilities of EPANET 2.3, extending its editing and calculation options.

In addition to this, QGISRed offers some aids for building models, such as the verification of all data, automatic calculation of lengths, interpolation of elevations from a DEM, assignment of roughness to pipes based on material and age, assignment of demands to nodes from population data or registered average consumption, and management of calculation scenarios.

Learn more›

As an advanced modelling tool, QGISRed offers additional options to extend the model and connect it with real data, thus progressively converting the hydraulic model of the network into a Digital Twin. For example, through service connections the billing or meter reading data can be loaded into the model, and through sensors the field measurements can be compared with the simulated values. Shut-off valves allow isolation for maintenance operations or to sectorise the network temporarily or permanently. Having access to real data, water balances can be performed, performance indicators (or KPIs) obtained, etc.

Emulating EPANET's capabilities allows accelerating the learning curve in handling QGISRed. Moreover, the QGIS knowledge required for its use is minimal, since dedicated tools have been developed to carry out all necessary operations. However, QGIS specialists will be able to get even more out of the features offered by QGISRed.

Through this page, numerous resources are offered to quickly become an expert in network modelling, and to offer professional solutions to companies using the tools associated with the Digital Twin. Finally, it is worth noting that the data model used by QGISRed is public and has a very simple structure, fundamentally oriented to carrying out all types of analysis, which allows QGISRed to connect with other network modelling applications such as EPANET, InfoWorks or WaterGEMS.

QGISRed (pronounced as Koo_his_rred following Spanish phonetics) is available in English, Spanish, French and Portuguese. It could potentially be offered in more than 40 languages supported by QGIS.

Background

The idea of enhancing EPANET's capabilities by connecting it with a GIS is not new for our research group. Back in 2004, Fernando Martínez, director of the current QGISRed project, directed a project with similar objectives and features, called GISRed. There were two versions at the time, 1.0 and 2.0, and its capabilities were disseminated through several publications.

GISRed was programmed in the Avenue language for ArcView 3.2, a predecessor of what later became ArcGIS, and came to be configured by more than 600 scripts. It was used internally as a tool to help build several master plans for improving water supplies, including the water supply for the city of Valencia and its metropolitan area, with a served population of 1.5 million inhabitants, as the most important milestone.

However, the lack of robustness of the product initially limited its dissemination, and before long ArcView became obsolete, and the Avenue language was also abandoned.

Read more›

In the following 15 years, no application, apart from commercial products, managed to provide the features that GISRed offered to help build water supply network models. Meanwhile the EPANET code was liberalised, and in 2015 a section was founded within Open Water Analytics (OWA) to continue developing the EPANET calculation module (also known as the Toolkit), with the contribution of the entire research community. Finally, in December 2019 the latest version 2.2 of the Toolkit was launched from this platform. Shortly afterwards, in July 2020, the EPA also improved the graphical interface of EPANET to version 2.2, integrating the latest version of the Toolkit. This version 2.2 of the Toolkit remained current until July 2025, when it was superseded by the new version 2.3.

However, these advances in EPANET did not enhance the tools for building models, nor did they incorporate new types of elements into the network. They were basically limited to making all the data in a scenario accessible to programmers and offering the option of using the function library in concurrent mode, with the greatest contribution being the possibility of running models with pressure-dependent demands (PDA). The challenges of the old GISRed were still present, so in 2018, following the spectacular advances of the free software QGIS, we decided to reproduce GISRed's features in this new environment, and in the process improve both the features of that initial product, bringing them up to the level offered by the latest version of EPANET 2.2. The first public presentation of the new product, now called QGISRed, took place during the CCWI 2019 Conference, in Exeter (UK).

On the other hand, the experience gained by the authors in the development of one of the first Digital Twins in the world for the city of Valencia led us to further enhance the capabilities of the new plugin to allow migration from a conventional hydraulic model to the construction of a Digital Twin.

The result of this effort is the QGISRed product presented here, with the intention of marking a milestone among free-to-use products aimed at facilitating the construction of water distribution network models, which will be increasingly required by water supply management companies for decision-making, at a time when the digitalisation of this sector is beginning to gallop ahead.

QGISRed is still under construction, and the features of the latest official version can be consulted in the CAPABILITIES section, where the latest developments and future features to be developed are detailed. It is expected that the scope of all the objectives proposed in the roadmap will be completed, for the free version of this product, within a maximum of one year.

Applications

We would not have made all this effort if the use of simulation models were not increasingly required and necessary. Water distribution networks become complex systems to manage over time, due to their continuous expansion and adaptation according to needs. On the other hand, their highly non-linear behaviour, caused not so much by the pipe head loss equation, but mainly by the operating mode of the regulation elements, with continuous starts, stops and changes in set points, means that the intuition of network operators in estimating network behaviour fails on numerous occasions.

Models were initially used for design purposes, and for this it was sufficient to simulate the most unfavourable case, normally the peak situation, on a simplified network. Over time their use extended to simulate the dynamic behaviour of networks in operation, normally for a typical day, initially seeking to reproduce variations in reservoir levels, or to determine the extreme values of pressures, flows and velocities throughout the day, and their use was finally enhanced to make predictions about the evolution of water quality as it is transported through the network. Today models are required to faithfully reproduce the behaviour of the network at any instant in the past or present, and to predict its short-term behaviour through digital twins.

QGISRed aims to cover all these situations, with the main applications for each case being:

Working with Static Models›
  • Sizing pipes and regulation elements for the most unfavourable scenario
  • Planning new scenarios for network extensions, rehabilitation of components, reforms, etc.
  • Calibrating the model from measurements at specific moments
  • Simulating the system response in extreme situations such as pipe breaks, elements out of service, etc.
  • Analysing network criticality to detect the weakest elements
  • Sectorising the network guaranteeing supply under the most unfavourable conditions
  • Carrying out energy audits affecting the design and conception of the transport and distribution system
Working with Dynamic Models›
  • Establishing the set points of regulation elements to guarantee appropriate values of hydraulic variables at all times: pressures, flow velocities, etc.
  • Calibrating the model from measurements over extended periods
  • Analysing the reliability and responsiveness of the network in any eventuality and at any time. Managing reservoir reserves.
  • Analysing the dynamic behaviour of sectorised networks and the actions to be taken when necessary to guarantee supply.
  • Programming network maintenance activities that affect the supply system. Determining the optimal start time of works and the permitted duration.
  • Optimising the system operating regime to reduce energy consumption on a typical day.
  • Monitoring water quality and programming the actions required to maintain quality parameters throughout the network: periodic discharges to sewers, rechlorination stations, etc.
  • Analysing optimal operating modes for sudden or prolonged demand increases (events, tourist populations) or reductions (weekends, summer depopulation, etc.)
  • Managing supply pressures to reduce network leaks
  • Managing demand during scarcity periods. Establishing intermittent supply programmes if necessary.
  • Determining performance indicators (KPIs) for extended periods, considering the variability of hydraulic and quality parameters.
Working with Digital Twins›
  • Loading the model with real data at any given moment, relating to demands, reservoir levels, operating modes of regulation elements, etc.
  • Keeping the hydraulic and quality model permanently calibrated
  • Inferring the value of any unmeasured quantity through simulation
  • Calculating any type of indicator based on real historical and simulated (unmeasured) data
  • Detecting any anomaly in the network's control parameters, and estimating their possible causes
  • Simulating possible actions before executing them, in response to any unforeseen event, using the regulation elements available at that moment
  • Early detection of any water contamination event and determination of the actions required to return to a normal state
  • Monitoring night flows in sectorised networks and analysing other variables for leak localisation
  • Continuously contrasting supplied flows with registered demands, if meter reading is available
  • Real-time monitoring of all types of hydraulic, energy or dissolved substance balances in the water
  • Training operators by reproducing past situations and applying actions to correct supposed anomalies
  • Predicting short-term network behaviour, estimating demands and applying planned regulation rules
  • Optimising the network's regulation scheme to achieve the desired objectives in the next 24 h, taking into account the current state of the network, resource availability, energy prices, etc.

In any case, it must be made clear that the free version of QGISRed is not going to offer solutions to all these formulated problems, nor is it its intention. QGISRed is limited to simulating the behaviour of the network under predefined conditions, as EPANET currently does. Only it offers many more modelling tools, covers more types of elements, and allows the model to be connected with real data.

While reproducing reality is a verifiable challenge, offering solutions to many of the problems raised requires taking into account the criteria of those responsible for managing the network. The solution in these cases is not unique, and optimisation or artificial intelligence techniques are often used to reach feasible solutions. These techniques are currently beyond the scope of the free version of QGISRed. However, the user will be able to check with the product on offer the response to any given situation, which already represents an important advance. Consequently, engineering judgement and the good expertise of specialists are still of great value in offering the right solutions to these problems.

QGISRed software screenshot

Installing QGISRed

QGISRed is not a conventional standalone desktop application that you first download and then install by running the downloaded file. Nor is it a web application that downloads at the moment you run it.

QGISRed is a QGIS plugin, and therefore this product must be installed first, in its desktop version, from the official website https://www.qgis.org. Users can install the most recent version for Windows, although it is also compatible with earlier versions.

QGIS is currently the most widely distributed free GIS software in the world, and offers in its latest versions an innumerable list of features, including interoperability with all types of environments and data formats. It is available for Windows, macOS, Linux, BSD, mobiles and tablets. However, QGISRed currently only works on Windows and for versions 3.28 or later. Furthermore, although QGIS can support up to 40 languages, QGISRed is currently available only in English, Spanish, French and Portuguese.

Installing the QGISRed plugin›
  1. From the Plugins menu, choose the Manage and Install Plugins option.
  2. From the All tab, search for the QGISRed plugin by name, and the following screen should appear, as it is a plugin registered in the official QGIS repository.
  3. Click the Install Plugin button, and within seconds the application will be installed. Finally close the window.
  4. The new QGISRed menu will appear in the menu bar and the new QGISRed toolbar will also be shown, from which all QGISRed features can alternatively be accessed.
  5. One final step remains. As soon as you try to use any QGISRed option for the first time, a new screen will appear asking you to complete the installation with the libraries (dlls) that contain all the algorithms that make up the QGISRed core. It only takes a few more seconds.
  6. This completes the installation of an application that will surprise you with the numerous features added on top of those already offered by QGIS, all oriented towards the creation and operation of hydraulic network models.
The QGIS plugin repository›

There are currently more than 1100 active QGIS plugins registered, but barely half a dozen have to do with hydraulic networks. Among them, QGISRed is the one that offers the most features today. If you open the QGISRed plugin window again you can see a summary of its features, the current number of downloads and its rating.

In the same window you have a link to the QGISRed entry in the QGIS repository (you can also get there by clicking here), where you will find some further details, and the version history since September 2019 when the first version of QGISRed was uploaded to the repository. By clicking on them you can see the improvements brought in each one.

Beta versions and updates›

QGIS also allows installing provisional beta versions through the Install from ZIP tab in the same installation window, but this is reserved for collaborating users. Each time a new official version is released, a pop-up message will appear informing you of its existence, which will take the user to the QGIS plugin repository to find out about the new features, although you will also have them on this website. Furthermore, from the QGISRed plugin window itself, the user will be invited to update the current version. Simply click the Upgrade Plugin button at the bottom of the window, which will be shown as active, to automatically replace the previous version with the new one in a matter of seconds. Then, when you click any QGISRed button, you will be asked to also update the libraries.

Finally, if you want to know which version of QGISRed is currently installed, you only need to read it in the plugin window itself or by clicking on the About QGISRed menu option.

GitHub Project

QGISRed is not a closed product. The part of QGISRed's code that interacts with QGIS functionalities is developed in Python and is in the public domain, in accordance with the terms of the GNU GPL 2.0 QGIS licence, which is extensible to all plugins distributed through its official repository. This code is accessible through the GitHub portal QGISRed and hosts all the functionalities affecting the customisation of the QGIS graphical interface after installing the plugin, as well as certain editing and selection capabilities of the network elements.

Below, the content of the tab hosting the QGISRed code is shown. From the last two lines you can also access the manuals in Spanish and English

Learn more about the QGISRed project on GitHub›

The QGISRed project is in its first implementation phase, and for now the development of the free code is not collaborative, although it is planned to open it to the research community in the future.

On the right-hand side of this tab, the plugin's licence is also shown, the latest released version and all previously published versions with their improvements

A very important section of this portal is the Issues tab, which is fully active, and where users can report any incident. It is divided into two sections, one for Open issues (most are suggestions for the future) and another for Closed or resolved issues, which are all those that seriously affect some functionality of the application.

To create a new issue, users must first register on GitHub, through the Sign up button at the top, and then follow the instructions. They can then create a new issue using the New Issue button, or respond to open issues raised by other users.

Also in the future we will host in the Wiki tab of this portal an open and collaborative version of the application manuals, both in Spanish and English.

However, the majority of QGISRed's code is developed in C# for Windows, configuring a series of libraries called GISRed.xxx.dll, which are used by the graphical interface. These libraries contain the majority of the algorithms, forms and dialogue boxes specific to the application, and are installed in the …/AppData/Roaming/QGISRed/dlls/… folder of the user's profile when any button or option of the plugin is pressed, once installed. All the algorithms contained in this library have been developed from scratch, and do not use any other external library, nor those of QGIS itself, thus not generating any dependency, except with the Epanet2.dll library corresponding to the EPANET 2.3 Toolkit (version 2.3.4), used to launch hydraulic and quality simulations, and the Shapelib.dll library used to read and write .shp files; both libraries are installed at the same time as the QGISRed libraries. On the other hand, the Python dialogues have been built using the Qt platform, which is also in the public domain.

Credits

The QGISRed project was born at the initiative of the Research Group on Hydraulic Networks and Pressurised Systems (REDHISP), of the Institute for Water and Environmental Engineering (IIAMA) of the Universitat Politècnica de València (UPV), as a proposal to resume the features of the old GISRed application and adapt them to a more modern working environment, while promoting its dissemination worldwide.

The project started with a Grant from the Generalitat Valenciana for the hiring of Technology Transfer Support Staff (APOTI/2018/006), for an effective amount of €18,300 and duration from November 2018 to July 2019. From that date the project continued through the economic support of the REDHISP group's R&D Sustainability Fund, fed by its own resources generated through contracts and with the collaboration of the company WaterPi until the end of 2022.

Fernando Martínez Alzamora

The direction of the QGISRed Project is in the hands of Prof. Fernando Martínez Alzamora, Full Professor of Hydraulic Engineering at the UPV, with more than 40 years of experience in the modelling of pressurised hydraulic systems. A brief CV is attached, while a list of main publications can be found on his personal page on Research Gate.

Learn more›

Fernando Martínez Alzamora holds a degree in Industrial Engineering from the Universitat Politècnica de València (1978) and a PhD from the same university (1982). Since 1995 he has been Full Professor of Hydraulic Engineering at the UPV and since 2001 a researcher at the Institute for Water and Environmental Engineering (IIAMA) of the aforementioned University. He teaches in the area of Hydraulic Machinery and its industrial applications, including the harnessing of renewable energies through Hydroelectric Power Plants and Wind Farms. He has also taught subjects in doctoral and master's courses on the Modelling of Hydraulic Networks and the use of Geographic Information Systems (GIS). His research has focused on the analysis, design and operation of water distribution networks, both for urban water supply and pressurised irrigation. In particular he has worked on improving simulation algorithms, integrating hydraulic models into GIS for the preparation of master plans, and using models in real time for decision-making, in connection with SCADA systems. On these topics he has published 40 articles in prestigious journals, 70 papers at national and international Conferences, and supervised 11 doctoral theses. He has been principal investigator of 12 national research projects and has participated as team leader in 4 European projects under the framework programme. He regularly collaborates as a consultant or in the development of contracts with companies in the water transport and distribution sector, having been responsible to date for a total of 62 contracts.

Néstor Lerma Elvira

The QGISRed code was developed until the end of 2022 by Néstor Lerma Elvira, PhD in Civil Engineering from the UPV, and founding partner of the company WaterPi Coop. V. Much of the credit for the version of QGISRed offered here is due to Néstor's excellent work, which has managed to combine his engineering knowledge with his skills as a programmer. You can visit his research profile on his personal page on Research Gate.

Learn more›

Néstor Lerma Elvira holds a degree in Civil Engineering from the Universitat Politècnica de València (2010) and a PhD from the same university (2017). During the period 2009-2017 he specialised in water resources, applying evolutionary algorithms to optimise management in multi-reservoir systems in his final degree project, the final project of the Master's in Hydraulic Engineering and Environment (taught at the same university) and the aforementioned doctorate.

QGISRed v1.0 is registered with the CARTA services of the UPV, with registration number S-072-2021, and GNU GPL 2.0 licence, with 100% ownership belonging to the UPV. Downloading and using the plugin is free, without requiring any prior registration. However, in any professional or educational use of the plugin, its origin must be mentioned and a link to this website provided. Nevertheless, users who voluntarily wish to register to keep up to date with new developments or contact the developers can do so from our contact form.