Skip to main content
Tweeted twitter.com/StackGIS/status/1453375968756867076
Became Hot Network Question
deleted 77 characters in body; edited title
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Add grouping variable to attribute table using QGIS

I have a vector shapefile of river networks, where each reach in the networks has its own row in the attribute table. I want to add a grouping column to the attribute table indicating which network the reach belongs to, e.g.:

a two network example: enter image description here

and my attribute table:

enter image description here

I would like an additional column in the attribute table called "network" which would be filled with 1, 2, ....n indicating which network the given reach belongs to (in the example above "network" would be 1 or 2 since there are only two networks), it doesn't matter which network is 1 and which is 2.

I imagine this is trivial, I'm just learning, any help much appreciated.

Add grouping variable to attribute table

I have a vector shapefile of river networks, where each reach in the networks has its own row in the attribute table. I want to add a grouping column to the attribute table indicating which network the reach belongs to, e.g.:

a two network example: enter image description here

and my attribute table:

enter image description here

I would like an additional column in the attribute table called "network" which would be filled with 1, 2, ....n indicating which network the given reach belongs to (in the example above "network" would be 1 or 2 since there are only two networks), it doesn't matter which network is 1 and which is 2.

I imagine this is trivial, I'm just learning, any help much appreciated.

Add grouping variable to attribute table using QGIS

I have a vector shapefile of river networks, where each reach in the networks has its own row in the attribute table. I want to add a grouping column to the attribute table indicating which network the reach belongs to, e.g.:

a two network example: enter image description here

and my attribute table:

enter image description here

I would like an additional column in the attribute table called "network" which would be filled with 1, 2, ....n indicating which network the given reach belongs to (in the example above "network" would be 1 or 2 since there are only two networks), it doesn't matter which network is 1 and which is 2.

Source Link
flee
  • 133
  • 5

Add grouping variable to attribute table

I have a vector shapefile of river networks, where each reach in the networks has its own row in the attribute table. I want to add a grouping column to the attribute table indicating which network the reach belongs to, e.g.:

a two network example: enter image description here

and my attribute table:

enter image description here

I would like an additional column in the attribute table called "network" which would be filled with 1, 2, ....n indicating which network the given reach belongs to (in the example above "network" would be 1 or 2 since there are only two networks), it doesn't matter which network is 1 and which is 2.

I imagine this is trivial, I'm just learning, any help much appreciated.