Attribute Table in QGIS#
The attribute table, a core component of Geographic Information Systems (GIS), organizes and presents detailed information about features in a selected layer. Each row in the table represents a feature, while columns store specific attributes. This table facilitates searching, selection, sorting, filtering, and editing of features.
Attribute Table-Basics#
Display attribute table and sort features#
Open Attribute Table: Right click on your layer –>
Open Attribute Table
Sort column: Click on a column header.
Manually select features in the attribute table#
Select: Click on the lines of the features.
Multi Select: To select multiple features press
Ctrl
and selectfeatures
.Show only selected features: In the bottom left of the attribute table open the dropdown menu and select
Show selected features
. To show again all features click onShow all features
.Only show unselected features Select features and click on
Unselect feature#
Unselect: Click on or use
Ctrl+Shift+A
.
Zoom in on a specific feature#
Zoom: Right click on your feature –>
Zoom To Feature
Table view vs Form view#
QGIS provides two view modes to easily manipulate data in the attribute table:
Table View: This mode presents the values of multiple features in a tabular format, where each row corresponds to a feature, and each column represents a field.
Form view:! This mode shows all attributes of one selected feature.
To switch between these modes use the buttons in the down right corner of the attribute table.
Attribute Table- Data Editing#
Change data in the attribute table#
Open Attribute table: Right click on your layer –>
Open Attribute Table
Edit Data: Activate editing mode by clicking on –> Do your edits
Save edits: Click on or deactivate editing mode by clicking on –>
Save
Add new column#
Add new column: Activate editing mode by clicking on –> click on , the window
Add Field
will open.Specify column variables: Fill the window and click
OK
.Name
= Name of columnComment
= Additional info about columnType
= Select the type of data the column will have.Table of data types below.
Type |
Property |
---|---|
Whole number (integer) |
Whole numbers like counts, quantities, or IDs. |
Whole number (integer 64-bit) |
Larger whole numbers for very big counts. |
Decimal number (real) |
Numbers with decimal points, useful for measurements and fractions. |
Text (string) |
Alphanumeric characters, such as names and descriptions. |
JSON (string) |
Structured text data often used for complex information. |
Date |
Specific calendar dates. |
Date & Time |
Dates and times together |
Binary object (BLOB) |
For storing binary data like images, audio, or files. |
Boolean |
Simple true/false or yes/no values. |
Delete column#
Delet column: Activate editing mode by clicking on –> click on –> Select the columns you want to delete –> Click on
OK
–> Click on
Hint
To select multiple columns press Ctrl
and select columns.