Local and global approaches to spatial data analysis in ecology