Unsupervised spatial classification of functional biodiversity