QGISRed

Group Editing of Properties

‹Back to Capabilities

Group Editing of Properties

QGISRed's current Property Editor lets you modify any property of any network element individually. But often we want to assign a common property to many elements, or make the same change to all of them at once — that is, edit the properties of a chosen group of elements in a single action.

The new Group Property Editing option in QGISRed's Edit menu lets you make changes at once to the properties of a group of chosen elements, which must all be of the same type. Any of the existing network elements can be chosen for modification, whether basic elements or elements specific to the Digital Twin. Contamination sources and multiple demands are treated as independent selectable entities.

The elements to act on can be restricted by a spatial selection or by applying a filter to one of their properties. For the spatial selection, it is recommended to use QGISRed's multiple selector, available as an option in the Edit menu, while to apply a filter you can choose any property of the element and set a condition that depends on the property type. If the property is numeric, relational operators are offered; if it is text, logical operators are offered; and if it is an enumerated property, the unique values used in the project for that property are offered. Only one condition is allowed per action.

As for the property to modify, if it is enumerated, the only possible action is to replace the current value with one of the values allowed for that property. If the property is numeric, in addition to replacing its value, certain mathematical operations can be performed on the current value, such as adding or subtracting a quantity, multiplying or dividing by a factor, or capping the value of the magnitude. Finally, if the property is free text, in addition to replacing the text with another, prefixes or suffixes can be added to the current text, or one string can be swapped for another.

When the Apply button is pressed, the changes made can be seen provisionally in the attribute table, which will open automatically to show them. Only when the Accept button is pressed will all the changes made be consolidated. Since the changes cannot be undone, if you decide not to apply the proposed changes after all, they can still be discarded by pressing the Cancel button.