Looking at attribute tables can often be tedious work, especially when you are trying to look for certain values, because all of the cells in the attribute table are formatted the same: black text on a light background. QGIS has a fantastic feature that allows cells to have a different format based on expressions that you set. This is called conditional formatting. In this section, we will use conditional formatting to make it easier to identify which schools are public and private, which schools are elementary schools, and which schools do not have a site identification number assigned. We will use the schools.shp
sample data for this section:
Add
schools.shp
to QGIS Desktop and open its attribute table.-
Click the Conditional Format button in the upper-right corner of the attribute table to open the Conditional Format Rules panel.
The Conditional Format Rules panel lists two types of conditional format rules that you can set: Field rules...