What markings on trees mean

An orange line drawn around a tree trunk means that tree has been condemned and will shortly be taken down, but what do the coloured dots mean? 24hrs explains.

(I’ve wondered: if you had some reason to want a tree removed from public property, could you paint an orange line around the trunk and wait? Not that I’m recommending this.)