I am using QGIS 3.4
I would like to hide all points that end with "5". For example, I would like to hide: 55, 65, 75, 85 and any point ending in "5".
What method can be use to make this possible?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
We can use the modulus operator
% to calculate the remainder values when dividing by 5. If there is no remainder then it is removed from the display. However, because multiples of 10 can be divided by 5 with no remainder, we will have to exclude this by adding some logic to the expression:
if("LABEL" % 5 = 0 AND NOT "LABEL" % 10 = 0, "LABEL" % 5 AND NOT "LABEL" % 10, "LABEL")