I have a linear network of lines all digitized in the direction of flow and am trying to assign route ID's to segment groups. Is there an automated process to do this using QGIS?
Use the Field Calculator to create a new field (the group ID field) with an expression like this:
CASE WHEN "common_attribute" = 'value1' THEN 'group1' WHEN "common_attribute" = 'value2' THEN 'group2' WHEN "common_attribute" = 'value3' THEN 'group3' WHEN "common_attribute" = 'value4' THEN 'group4' ELSE null END
WHEN...THEN section as many times as you have groups.
If each group has a combination of conditions, join them using the
AND operator, like this:
WHEN "common_attribute1" = 'value1' AND "common_attribute2" = 'value2' THEN 'group1'