Feature request #5117
Make the first column of the Attribute Table show feature ID
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Easy fix?:||No||Copied to github as #:||14876|
Right now, the first column shows a row number that has no link to any geo attribute. When unsorted, this row seems to match the feature id, but if you sort any column, you immediately lose this connection. I believe this is confusing and should be fixed by making the first column show the feature id. The feature ID could then be directly copied when copying selected features to clipboard.
#4 Updated by Alister Hood about 7 years ago
Right now, the first column shows a row number that has no link to any geo attribute.
Is this really about the first column, or is it about the row labels? The first column doesn't show a row number for me...
but if you sort any column, you immediately lose this connection.
Also, sorting a large table is very slow, even when using "show selected only", with only a small selection.
Is this because it is spending time renumbering every row? Could the sort be fast if the row labels were the feature ID?
The feature ID could then be directly copied when copying selected features to clipboard.
Wouldn't that be possible anyway? The geometry is copied to the clipboard, even though it isn't shown in the attribute table.
This proposal would also be useful generally - e.g. it would make it easier to work with the "item browser" plugin.
#6 Updated by Médéric RIBREUX almost 4 years ago
- Status changed from Open to Feedback
Hello, bug triage...
I think this is fixed in QGIS 2.13 (and probably in previous versions). Here is what I've found so far:
- open a layer with lots of features.
- add a virtual field named 'ID' and put $id in the expression (returns the feature ID of the feature).
- find that ID field content match "first column" of the attribute table !
To me that means that "first column" of the attribute table is feature ID.
Can someone confirm ?
#7 Updated by Médéric RIBREUX almost 4 years ago
- Resolution set to fixed/implemented
- Status changed from Feedback to Closed
- % Done changed from 0 to 100
Hello, bug triage...
I am closing this feature request for lack of feedback and because it seems to be implemented at least in QGIS master.
Feel free to reopen it if I have missed something !