Conditional formatting for attribute table cells
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 ...
Get Mastering QGIS - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.