Utilities and Algorithms for Spatial Analysis