Applications of spatial data structures