QGISRed

Creation of Statistics

‹Back to Capabilities

Creation of Statistics

This new QGISRed tool is designed to make it easier to compile statistics on the properties of the elements that make up the network. When compiling statistics for a property, it can also be classified by one or up to two criteria. For example, we can analyse base demands or elevations classified by ranges of the magnitude itself, find out the materials used by diameter ranges, determine pipe length classified by diameter or material, or even classified by diameter and material for each diameter, and so on. If a simulation has been run, the properties to analyse can also be extended to the calculation results. In addition, filters can be set to restrict the elements to analyse. In each case, the analysis results are shown both in table format and graphically as a histogram. The combinations are numerous, which gives a sense of the power of this new tool, as well as its internal complexity.

The new dialog has two tabs: the first specifies the query parameters, and the second shows the results, in the two formats mentioned: table and histogram. First you must choose the type of element whose properties you want to query. This includes all basic elements, multiple demands, sources, Digital Twin elements, and the generic Line and Node elements for evaluating hydraulic and quality results without distinguishing the type of line or node.

It is possible to filter the elements to be analysed when compiling statistics, by setting a single condition on one of the properties. This condition depends on the type of property and can be applied to any property of the element, including the calculation results for the current time. Alternatively, the elements to analyse can also be restricted to the elements selected using any of the tools available in QGIS or QGISRed's multiple selector.

The property to be analysed can be numeric or enumerated, with different results in each case. If it is numeric, the count, sum, mean, and maximum and minimum values are shown. If it is enumerated, the count and the unique values that meet the conditions are shown.

The statistical analysis can simply refer to the selected elements and the chosen property, or it can be classified by ranges of another property of the same element, if numeric, or by categories if enumerated. If a numeric property is used, the ranges can be declared automatically under various criteria, or manually, allowing any number of ranges to be set. The classification property can be the same property being analysed, in which case we obtain the statistics for that property by ranges.

When the analysis is classified by a property, the table shows the different statistics in columns, using one row per class and the last row for the totals. As for the histogram, each bar represents a class, while the vertical axis shows the statistic chosen from a dropdown.

If desired, a second property of the same element can be used to perform a finer classification. This second property can also be numeric or alphanumeric, and in the first case the ranges can be declared in the same way. In that case, the results table becomes a two-way table, with the first classification property occupying the rows and the second the columns. The statistic to display in each cell can be chosen from a dropdown. The histogram, in turn, adds a second dropdown to filter by the range or category of the second property.